README

moonbit-community/harfbuzz/blob does not have a README file

#
BlobError

type BlobError derive(Eq, Show, ToJson)

#
Blob

pub struct Blob {
bytes : Bytes
offset : Int
length : Int
mode : MemoryMode
} derive(Eq, Show, ToJson)

Blob wraps binary data with a view range.

#
Blob::as_view

fn Blob::as_view(self : Blob) -> BytesView

Get a view of the blob bytes.

#
Blob::from_array

fn Blob::from_array(bytes : ArrayView[Byte], mode? : MemoryMode) -> Blob

Create a blob from a byte array view.

#
Blob::from_bytes

fn Blob::from_bytes(bytes : Bytes, mode? : MemoryMode) -> Blob

Create a blob from bytes.

#
Blob::from_bytes_copy

fn Blob::from_bytes_copy(bytes : Bytes) -> Blob

Create a blob by copying bytes.

#
Blob::get

fn Blob::get(self : Blob, index : Int) -> Byte?

Raw byte access with bounds checking.

#
Blob::is_empty

fn Blob::is_empty(self : Blob) -> Bool

Return true when empty.

#
Blob::len

fn Blob::len(self : Blob) -> Int

Return the blob length in bytes.

#
Blob::memory_mode

fn Blob::memory_mode(self : Blob) -> MemoryMode

Access the memory mode.

#
Blob::sub

fn Blob::sub(self : Blob, offset : Int, length : Int) -> Result[Blob, BlobError]

Create a sub-blob.

#
Blob::to_bytes

fn Blob::to_bytes(self : Blob) -> Bytes

Copy the blob into a new Bytes value.

#
MemoryMode

pub enum MemoryMode {
Duplicate
Readonly
Writable
ReadonlyMayMakeWritable
} derive(Eq, Show, ToJson)

Memory ownership mode for blob data.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io