Skip to content

ValBytes

[Source]

Tries to catch both Array[U8] val and ByteArrays in order to define ByteArrays as possibly recursive tree structure.

interface val ValBytes is
  ReadSeq[U8 val] box,
  Trimmable[U8 val] val,
  CopyToable[U8 val] ref,
  ReadAsNumerics val

Implements


Public Functions

size

fun box size()
: USize val

Returns


apply

fun box apply(
  i: USize val)
: U8 val ?

Parameters

Returns

  • U8 val ?

values

fun box values()
: Iterator[U8 val] ref^

Returns


trim

[Source]

fun val trim(
  from: USize val,
  to: USize val)
: Array[U8 val] val

Parameters

Returns


copy_to

[Source]

fun box copy_to(
  dst: Array[U8 val] ref,
  src_idx: USize val,
  dst_idx: USize val,
  len: USize val)
: None val

Parameters

Returns


read_u8[optional B: U8 val]

[Source]

fun box read_u8[optional B: U8 val](
  offset: USize val)
: U8 val ?

Parameters

Returns

  • U8 val ?

read_u16[optional B: U8 val]

[Source]

fun box read_u16[optional B: U8 val](
  offset: USize val)
: U16 val ?

Parameters

Returns


read_u32[optional B: U8 val]

[Source]

fun box read_u32[optional B: U8 val](
  offset: USize val)
: U32 val ?

Parameters

Returns


read_u64[optional B: U8 val]

[Source]

fun box read_u64[optional B: U8 val](
  offset: USize val)
: U64 val ?

Parameters

Returns


read_u128[optional B: U8 val]

[Source]

fun box read_u128[optional B: U8 val](
  offset: USize val)
: U128 val ?

Parameters

Returns