@procwire/codecs
@procwire/codecs - Serialization codecs for Procwire binary protocol.
This package provides codec interfaces and implementations for serializing/deserializing payload data in the binary protocol.
Example
Section titled “Example”import { rawCodec, rawChunksCodec, msgpackCodec, arrowCodec } from '@procwire/codecs';
// For small/medium payloads - returns Bufferconst data = rawCodec.deserialize(payload);
// For large payloads - returns Buffer[] (ZERO-COPY!)const chunks = rawChunksCodec.deserializeChunks(payloadChunks);
// For objects with Date/Buffer supportconst obj = msgpackCodec.deserialize(payload);
// For columnar data (ML embeddings, query results)const table = arrowCodec.deserialize(payload);Classes
Section titled “Classes”Interfaces
Section titled “Interfaces”Type Aliases
Section titled “Type Aliases”- ArrowSerializable
- ChildEventType
- ChildRequestType
- ChildResponseType
- EmptySchema
- ExtractSchema
- InferCodecInput
- InferCodecOutput
- ObjectCodecType
- ParentEventType
- ParentRequestType
- ParentResponseType
- RawChunksCodecType
- RawCodecType