pro_binary library

This library provides functionality for binary reading and writing.

Classes

BinaryStreamTransformer<T>
A StreamTransformer that simplifies parsing binary messages from a stream.
BinaryWriterPool
Object pool for reusing BinaryWriter instances to reduce GC pressure.
ChunkedTransactionalState<TChunk>
A reusable base class for managing chunked transactional state.
TransactionalReader<TChunk>
A reader that supports a transactional model for streaming data.
TransactionalStreamTransformer<TMessage, TChunk, TReader extends TransactionalReader<TChunk>>
A StreamTransformer that simplifies parsing messages from a stream using a transactional reader.

Extension Types

BinaryReader
A high-performance binary reader for decoding data from a byte buffer.
BinaryWriter
A high-performance binary writer for encoding data into a byte buffer.
PoolStatistics
StreamBinaryReader
A reader designed for asynchronous streaming data that spans multiple chunks.

Extensions

BinaryReaderBytesString on BinaryReader
Byte array and string reading methods for BinaryReader.
BinaryReaderCore on BinaryReader
Core properties, operators, and lifecycle methods for BinaryReader.
BinaryReaderNumeric on BinaryReader
Fixed-width numeric reading methods for BinaryReader.
BinaryReaderPosition on BinaryReader
Position management methods for BinaryReader.
BinaryReaderRandomAccess on BinaryReader
Random access read methods for BinaryReader.
BinaryReaderVarInt on BinaryReader
Variable-length integer reading methods for BinaryReader.
BinaryWriterBytesString on BinaryWriter
Byte array and string writing methods for BinaryWriter.
BinaryWriterCore on BinaryWriter
Core properties, operators, and lifecycle methods for BinaryWriter.
BinaryWriterNumeric on BinaryWriter
Fixed-width numeric writing methods for BinaryWriter.
BinaryWriterPosition on BinaryWriter
Position management methods for BinaryWriter.
BinaryWriterRandomAccess on BinaryWriter
Random access read/write methods for BinaryWriter.
BinaryWriterScatterGather on BinaryWriter
Scatter-gather (zero-copy) output methods for BinaryWriter.
BinaryWriterVarInt on BinaryWriter
Variable-length integer writing methods for BinaryWriter.

Constants

kMaxInt64 → const int
kMinInt64 → const int

Functions

getUtf8Length(String value) int
Calculates the UTF-8 byte length of the given string without encoding it.

Exceptions / Errors

NotEnoughDataException
Exception thrown when a TransactionalReader does not have enough data to complete a read operation.