BleByteWriter

class BleByteWriter(initialCapacity: Int = 16)

Little-endian byte builder for constructing BLE characteristic payloads.

Symmetric counterpart to BleByteReader: same backing storage strategy (raw ByteArray + cursor), same little-endian semantics, same strict range validation. Designed to be created, written to linearly, and finalized with toByteArray within a single pure encode function.

Not thread-safe.

Constructors

Link copied to clipboard
constructor(initialCapacity: Int = 16)

Properties

Link copied to clipboard
var size: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard