¶
luxe
API (2025.1.2
)¶
luxe: bytes
module¶
Byter¶
import "luxe: bytes" for Byter
no docs found
- pos
- inner
- new(size:
Any
) - bytes()
- write_string(string:
Any
) - write_string(string:
Any
, length:Any
) - write_string_aligned4(string:
Any
) - write_string_aligned4(string:
Any
, length:Any
) - write_int8(value:
Any
) - write_uint8(value:
Any
) - write_int16(value:
Any
) - write_int32(value:
Any
) - write_int64(value:
Any
) - write_uint16(value:
Any
) - write_uint32(value:
Any
) - write_uint64(value:
Any
) - write_float32(value:
Any
) - write_float64(value:
Any
) - write_uuid(uuid:
Any
)
unknown
no docs found
unknown
no docs found
Any
)
¶Byter
no docs found
unknown
no docs found
Any
)
¶unknown
no docs found
Any
, length: Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
, length: Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Bytes¶
import "luxe: bytes" for Bytes
no docs found
- new(elements:
Any
) - length
- [index : Any]
- [index : Any]=(value : Any)
- from_string(string:
Any
) - set_from(other:
Any
) - copy(other:
Any
, at:Any
, length:Any
) - copy(other:
Any
, to:Any
, from:Any
, length:Any
) - set_string(at:
Any
, value:Any
) - set_string(at:
Any
, value:Any
, length:Any
) - get_string(at:
Any
, length:Any
) - set_int8(at:
Any
, value:Any
) - set_int16(at:
Any
, value:Any
) - set_int32(at:
Any
, value:Any
) - set_int64(at:
Any
, value:Any
) - set_uint8(at:
Any
, value:Any
) - set_uint16(at:
Any
, value:Any
) - set_uint32(at:
Any
, value:Any
) - set_uint64(at:
Any
, value:Any
) - set_float32(at:
Any
, value:Any
) - set_float64(at:
Any
, value:Any
) - get_int8(at:
Any
) - get_int16(at:
Any
) - get_int32(at:
Any
) - get_int64(at:
Any
) - get_uint8(at:
Any
) - get_uint16(at:
Any
) - get_uint32(at:
Any
) - get_uint64(at:
Any
) - get_float32(at:
Any
) - get_float64(at:
Any
) - get(at:
Any
) - set(at:
Any
, value:Any
) - bytes()
- clear()
- padding(length:
Any
, align:Any
) - padding(length:
Any
) - iterate(iter:
Any
) - iteratorValue(iter:
Any
)
Any
)
¶Bytes
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
, at: Any
, length: Any
)
¶unknown
no docs found
Any
, to: Any
, from: Any
, length: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
, length: Any
)
¶unknown
no docs found
Any
, length: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
, value: Any
)
¶unknown
no docs found
unknown
no docs found
unknown
no docs found
Any
, align: Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
BytesReader¶
import "luxe: bytes" for BytesReader
no docs found
- pos
- pos=(v : Any)
- bytes
- new(source_bytes:
Any
) - from_string(string:
Any
) - skip(count:
Any
) - check_bounds(to_read:
Any
) - get_string(length:
Any
) - get_int8()
- get_int16()
- get_int32()
- get_int64()
- get_uint8()
- get_uint16()
- get_uint32()
- get_uint64()
- get_float32()
- get_float64()
unknown
no docs found
unknown
no docs found
unknown
no docs found
Any
)
¶BytesReader
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
BytesWriter¶
import "luxe: bytes" for BytesWriter
no docs found
- pos
- pos=(v : Num)
- count
- capacity
- bytes
- inner
- new(initial_length:
Num
) - resize(new_capacity:
Num
) - ensure(write_length:
Num
) - write_string(string:
String
, length:Num
) - write_string(string:
String
) - write_string_aligned4(string:
String
, length:Num
) - write_string_aligned4(string:
String
) - write_string_and_length(string:
String
, length:Num
) - write_string_and_length(string:
String
) - write_int8(value:
Num
) - write_uint8(value:
Num
) - write_int16(value:
Num
) - write_int32(value:
Num
) - write_int64(value:
Num
) - write_uint16(value:
Num
) - write_uint32(value:
Num
) - write_uint64(value:
Num
) - write_float32(value:
Num
) - write_float64(value:
Num
) - write_uuid(uuid:
String
)
Num
no docs found
unknown
no docs found
Num
no docs found
Num
no docs found
String
no docs found
Bytes
no docs found
Num
)
¶BytesWriter
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
String
, length: Num
)
¶None
no docs found
String
)
¶None
no docs found
String
, length: Num
)
¶None
no docs found
String
)
¶None
no docs found
String
, length: Num
)
¶None
no docs found
String
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
Num
)
¶None
no docs found
String
)
¶None
no docs found
Floats¶
import "luxe: bytes" for Floats
no docs found
- new(elements:
Any
) - length
- capacity
- size
- [index : Any]
- [index : Any]=(value : Any)
- resize(elements:
Any
) - get(at:
Any
) - set(at:
Any
, value:Any
) - set(list:
Any
, at:Any
, list_offset:Any
, count:Any
) - set(list:
Any
) - ortho(left:
Any
, top:Any
, right:Any
, bottom:Any
, near:Any
, far:Any
) - perspective(fov_vertical:
Any
, aspect:Any
, near:Any
, far:Any
) - transform(px:
Any
, py:Any
, pz:Any
, rx:Any
, ry:Any
, rz:Any
, sx:Any
, sy:Any
, sz:Any
) - iterate(iter:
Any
) - iteratorValue(iter:
Any
)
Any
)
¶Floats
Create a new Floats instance that can store the amount of elements specified.
unknown
Get the size of the array in bytes. Since a float is 4 bytes, this should always be
value.size * 4
.
unknown
Get the capacity of the underlying array. When resizing up to this amount of elements, the array does not need to be reallocated. You can ignore this most of the time.
unknown
Get the amount of elements in the array.
unknown
Get the float value at a specific index.
unknown
Set the float value at a specific index.
Any
)
¶unknown
Resize array to new size.
Any
)
¶unknown
Get the float value at a specific index.
Any
, value: Any
)
¶unknown
Set the float value at a specific index.
Any
, at: Any
, list_offset: Any
, count: Any
)
¶unknown
Copy a part of a list into this array. This will grow the array if nessecary.
Any
)
¶unknown
Set the array to have the contents of a list. The array will be resized to have the same count as the list
Any
, top: Any
, right: Any
, bottom: Any
, near: Any
, far: Any
)
¶unknown
Makes the array a 4x4 (16 elements) orthographic projection matrix for camera rendering.
Any
, aspect: Any
, near: Any
, far: Any
)
¶unknown
Makes the array a 4x4 (16 elements) perspective projection matrix for camera rendering.
Any
, py: Any
, pz: Any
, rx: Any
, ry: Any
, rz: Any
, sx: Any
, sy: Any
, sz: Any
)
¶unknown
Makes the array a 4x4 (16 elements) model/transform matrix.
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Uint16¶
import "luxe: bytes" for Uint16
Tight uint16 array. Handeled internally as a C++ array, but will properly be deallocated by the wren garbage collector.
- new(elements:
Any
) - length
- [index : Any]
- [index : Any]=(value : Any)
- get(at:
Any
) - set(at:
Any
, value:Any
) - set(list:
Any
, at:Any
, list_offset:Any
, count:Any
) - set(list:
Any
) - iterate(iter:
Any
) - iteratorValue(iter:
Any
)
Any
)
¶Uint16
Create an array with the requested amount of elements
unknown
Get the size of the array in bytes. This is twice the amount of elements it can hold since each element takes up 2 bytes.
unknown
Get the int value at a specific index.
unknown
Set the int value at a specific index.
Any
)
¶unknown
Get the int value at a specific index.
Any
, value: Any
)
¶unknown
Set the int value at a specific index.
Any
, at: Any
, list_offset: Any
, count: Any
)
¶unknown
Copy a part of a list into this array. This will fail if trying to write outside the array bounds.
Any
)
¶unknown
Set the array to have the contents of a list. This will fail if trying to write outside the array bounds and will leave elements unchanged if list is shorter than array.
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found
Uint32¶
import "luxe: bytes" for Uint32
Tight uint32 array. Handeled internally as a C++ array, but will properly be deallocated by the wren garbage collector.
- new(elements:
Any
) - length
- [index : Any]
- [index : Any]=(value : Any)
- get(at:
Any
) - set(at:
Any
, value:Any
) - set(list:
Any
, at:Any
, list_offset:Any
, count:Any
) - set(list:
Any
) - iterate(iter:
Any
) - iteratorValue(iter:
Any
)
Any
)
¶Uint32
Create an array with the requested amount of elements
unknown
Get the size of the array in bytes. This is twice the amount of elements it can hold since each element takes up 2 bytes.
unknown
Get the int value at a specific index.
unknown
Set the int value at a specific index.
Any
)
¶unknown
Get the int value at a specific index.
Any
, value: Any
)
¶unknown
Set the int value at a specific index.
Any
, at: Any
, list_offset: Any
, count: Any
)
¶unknown
Copy a part of a list into this array. This will fail if trying to write outside the array bounds.
Any
)
¶unknown
Set the array to have the contents of a list. This will fail if trying to write outside the array bounds and will leave elements unchanged if list is shorter than array.
Any
)
¶unknown
no docs found
Any
)
¶unknown
no docs found