function createApiEncodeStream
createApiEncodeStream(): TransformStream<Command, Uint8Array>

Creates a TransformStream that encodes Command objects into MikroTik API binary format

This stream converts high-level Command objects into binary-encoded sentences ready for transmission over a network connection.

Return Type

TransformStream<Command, Uint8Array>

Usage

import { createApiEncodeStream } from "streams/encode.ts";