function createApiDecodeStream
createApiDecodeStream(): TransformStream<Uint8Array, Reply>

Creates a TransformStream that decodes MikroTik API binary format into Reply objects

This stream converts binary-encoded sentences from the network into high-level Reply objects. It handles incomplete data by buffering until complete sentences are available.

Return Type

TransformStream<Uint8Array, Reply>

Usage

import { createApiDecodeStream } from "streams/decode.ts";