Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.debug
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memwatch
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.bytes
core.conv
core.crypto
core.crypto.keys
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.protobuf
core.encoding.utf8
core.encoding.xml
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.iter
core.libc
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
runtime
runtime.info
runtime.platform
runtime.vars
simd

Package

core.bytes

append
append :: (buf: &[..] u8, b: u8) -> void

Appends a single byte.

append_i16_be
append_i16_be :: (buf: &[..] u8, v: i16) -> void
append_i16_le
append_i16_le :: (buf: &[..] u8, v: i16) -> void
append_i32_be
append_i32_be :: (buf: &[..] u8, v: i32) -> void
append_i32_le
append_i32_le :: (buf: &[..] u8, v: i32) -> void
append_i64_be
append_i64_be :: (buf: &[..] u8, v: i64) -> void
append_i64_le
append_i64_le :: (buf: &[..] u8, v: i64) -> void
append_str
append_str :: (buf: &[..] u8, s: [] u8) -> void

Appends the bytes of a string or slice.

append_u16_be
append_u16_be :: (buf: &[..] u8, v: u16) -> void

Appends v in big-endian order.

append_u16_le
append_u16_le :: (buf: &[..] u8, v: u16) -> void

Appends v in little-endian order.

append_u32_be
append_u32_be :: (buf: &[..] u8, v: u32) -> void
append_u32_le
append_u32_le :: (buf: &[..] u8, v: u32) -> void
append_u64_be
append_u64_be :: (buf: &[..] u8, v: u64) -> void
append_u64_le
append_u64_le :: (buf: &[..] u8, v: u64) -> void
find
find :: (data: [] u8, needle: [] u8) -> ? i32

Index of the first occurrence of needle, or .None.

put_u16_be
put_u16_be :: (dest: [] u8, v: u16) -> bool
put_u16_le
put_u16_le :: (dest: [] u8, v: u16) -> bool

Writes v into the start of dest. Returns false if dest is too short.

put_u32_be
put_u32_be :: (dest: [] u8, v: u32) -> bool
put_u32_le
put_u32_le :: (dest: [] u8, v: u32) -> bool
put_u64_be
put_u64_be :: (dest: [] u8, v: u64) -> bool
put_u64_le
put_u64_le :: (dest: [] u8, v: u64) -> bool
read_i16_be
read_i16_be :: (data: [] u8, offset: i32) -> ? i16
read_i16_le
read_i16_le :: (data: [] u8, offset: i32) -> ? i16
read_i32_be
read_i32_be :: (data: [] u8, offset: i32) -> ? i32
read_i32_le
read_i32_le :: (data: [] u8, offset: i32) -> ? i32
read_i64_be
read_i64_be :: (data: [] u8, offset: i32) -> ? i64
read_i64_le
read_i64_le :: (data: [] u8, offset: i32) -> ? i64
read_u16_be
read_u16_be :: (data: [] u8, offset: i32) -> ? u16
read_u16_le
read_u16_le :: (data: [] u8, offset: i32) -> ? u16

Reads a little-endian integer from data at offset. Returns .None if there are not enough bytes.

read_u32_be
read_u32_be :: (data: [] u8, offset: i32) -> ? u32
read_u32_le
read_u32_le :: (data: [] u8, offset: i32) -> ? u32
read_u64_be
read_u64_be :: (data: [] u8, offset: i32) -> ? u64
read_u64_le
read_u64_le :: (data: [] u8, offset: i32) -> ? u64