Std.Buffer
17 public declarations
- alloc
Int -> Std.Buffer.BufferAllocates a new contiguous buffer of `bytes` length initialized to zero.
- Buffer
A contiguous, unboxed sequence of raw bytes.
- compare
&Std.Buffer.Buffer -> Int -> &Std.Buffer.Buffer -> Int -> Int -> Option[Int]Compares `len` bytes between buffer `a` at `aOff` and buffer `b` at `bOff`.
- copy
&Std.Buffer.Buffer -> Int -> &Std.Buffer.Buffer -> Int -> Int -> Option[Std.Buffer.Buffer]Copies `len` bytes from `src` at `srcOff` into `dst` at `dstOff`.
- fill
&Std.Buffer.Buffer -> Int -> Int -> UInt8 -> Option[Std.Buffer.Buffer]Fills `len` consecutive bytes starting at `offset` with `byte`.
- fromBytes
Bytes -> Std.Buffer.BufferWraps an existing `Bytes` sequence into a `Buffer`.
- readF64
&Std.Buffer.Buffer -> Int -> Option[Float64]Reads a 64-bit IEEE 754 double-precision floating-point number at `offset` in little-endian order.
- readI64
&Std.Buffer.Buffer -> Int -> Option[Int64]Reads a signed 64-bit integer at the given byte `offset` in little-endian two's-complement representation.
- readU32
&Std.Buffer.Buffer -> Int -> Option[UInt32]Reads an unsigned 32-bit integer at `offset` in little-endian order.
- readU64
&Std.Buffer.Buffer -> Int -> Option[UInt64]Reads an unsigned 64-bit integer at the given byte `offset` in little-endian order.
- scanU64
&Std.Buffer.Buffer -> Int -> Int -> UInt64 -> Option[Int]Scans up to `count` 64-bit words starting at `offset` for `needle`.
- size
&Std.Buffer.Buffer -> IntThe length of the buffer in bytes.
- toBytes
&Std.Buffer.Buffer -> BytesExposes the underlying raw `Bytes` representation of the buffer.
- writeF64
&Std.Buffer.Buffer -> Int -> Float64 -> Option[Std.Buffer.Buffer]Writes a 64-bit IEEE 754 double-precision floating-point number at `offset` in little-endian order.
- writeI64
&Std.Buffer.Buffer -> Int -> Int64 -> Option[Std.Buffer.Buffer]Writes a signed 64-bit integer at the given byte `offset` in little-endian two's-complement representation.
- writeU32
&Std.Buffer.Buffer -> Int -> UInt32 -> Option[Std.Buffer.Buffer]Writes an unsigned 32-bit integer at `offset` in little-endian order.
- writeU64
&Std.Buffer.Buffer -> Int -> UInt64 -> Option[Std.Buffer.Buffer]Writes an unsigned 64-bit integer at the given byte `offset` in little-endian order.
