Skip to content

ludus::runtime::game_api::ByteSpan

Ludus Wiki · API overview · Browse API

Struct

A mutable, bounded byte span the module writes into.
The host owns the memory and the declared Capacity; the module reports BytesWritten.

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/api.h

#include <ludus/runtime/game_api/api.h>
struct ludus::runtime::game_api::ByteSpan final

Fields

Data

uint8* ludus::runtime::game_api::ByteSpan::Data = nullptr

Related types: uint8

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/api.h

Capacity

usize ludus::runtime::game_api::ByteSpan::Capacity = 0

Related types: usize

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/api.h