Skip navigation links

Package net.openhft.chronicle.bytes

The Chronicle Bytes package provides low-level memory access wrappers with functionalities akin to Java NIO's ByteBuffer.

See: Description

Package net.openhft.chronicle.bytes Description

The Chronicle Bytes package provides low-level memory access wrappers with functionalities akin to Java NIO's ByteBuffer. The API supports UTF-8 and ISO-8859-1 encoded strings, thread-safe off-heap memory operations, deterministic release of resources via reference counting, and more.

The main classes in this package are:

Bytes: A class for managing byte arrays, including operations for reading and writing data. It extends if you write data into it which is larger than its real capacity. It provides access to the cursors for reading and writing data at desired indices.

BytesStore: A block of memory with fixed size into which you can write data and later read. You cannot use the cursors with a BytesStore, unlike Bytes.

BytesIn: Interface that provides a range of methods for reading data from bytes.

BytesOut: Interface that provides a range of methods for writing data to bytes.

ByteStringParser: An interface for parsing byte strings.

ByteStringAppender: An interface for appending byte strings.

RandomDataInput: An interface that extends the StreamingDataInput.

RandomDataOutput: An interface that extends the StreamingDataOutput.

StreamingDataInput: An interface for reading data from a stream.

StreamingDataOutput: An interface for writing data to a stream.

For more information, please refer to each class documentation.

Skip navigation links

Copyright © 2023. All rights reserved.