TAKPacket-SDK — TypeScript - v0.7.0
    Preparing search index...

    Interface CompressionResult

    Per-packet compression statistics returned by TakCompressor.compressWithStats, primarily for reporting and the golden compression-report tooling.

    interface CompressionResult {
        compressedSize: number;
        dictId: number;
        dictName: string;
        protobufSize: number;
        wirePayload: Buffer;
    }
    Index

    Properties

    compressedSize: number

    Size in bytes of the final wire payload (flags byte + body).

    dictId: number

    The mode actually emitted, read back from the wire payload's flags byte: DICT_ID_NON_AIRCRAFT, DICT_ID_AIRCRAFT, or DICT_ID_UNCOMPRESSED when the skip-compress path fired.

    dictName: string

    Human-readable name of dictId ("non-aircraft", "aircraft", "uncompressed", or "unknown").

    protobufSize: number

    Size in bytes of the serialized TAKPacketV2 protobuf before compression.

    wirePayload: Buffer

    The compressed [flags][body] wire payload.