logos.lang.writ.wstatic

Module lang · package logos-lang

Types

structStringView

struct StringView

Non-owning byte-slice view (pointer + length) into blob-resident string data. Returned by string reads; a pure value — no allocation.

Implements: Copy

Fields

len: u64

Length of the string in bytes.

ptr: *const u8

Pointer to the first byte of the string within its blob.

structWritStatic

struct WritStatic

Compile-time handle to a @-literal writ blob laid out in rodata.

Fields

ptr: *const u8

Points at the first blob byte, past the 8-byte size prefix.

Methods

fn size(self: &WritStatic) -> u64

Returns the blob’s size in bytes, read from its rodata size prefix.

Functions

fnwrit_static_size

fn writ_static_size(ptr: *const u8) -> u64

Reads the u64 blob size stored 8 bytes before ptr. ptr must point past an intact [u64 size][bytes] rodata blob header.