Skip to content

luxe: bytes


import "luxe: bytes" for Byter

no docs found

Byter.pos : unknown

no docs found

Byter.inner : unknown

no docs found

Byter.new(size : Any) : Byter

no docs found

Byter.bytes() : unknown

no docs found

Byter.write_string(string : Any) : unknown

no docs found

Byter.write_string(string : Any, length : Any) : unknown

no docs found

Byter.write_string_aligned4(string : Any) : unknown

no docs found

Byter.write_string_aligned4(string : Any, length : Any) : unknown

no docs found

Byter.write_int8(value : Any) : unknown

no docs found

Byter.write_uint8(value : Any) : unknown

no docs found

Byter.write_int16(value : Any) : unknown

no docs found

Byter.write_int32(value : Any) : unknown

no docs found

Byter.write_int64(value : Any) : unknown

no docs found

Byter.write_uint16(value : Any) : unknown

no docs found

Byter.write_uint32(value : Any) : unknown

no docs found

Byter.write_uint64(value : Any) : unknown

no docs found

Byter.write_float32(value : Any) : unknown

no docs found

Byter.write_float64(value : Any) : unknown

no docs found

Byter.write_uuid(uuid : Any) : unknown

no docs found

import "luxe: bytes" for Bytes

no docs found

Bytes.new(elements : Any) : Bytes

no docs found

Bytes.length : unknown

no docs found

Bytes [index : Any] : unknown

no docs found

Bytes [index : Any]=(value : Any) : unknown

no docs found

Bytes.from_string(string : Any) : unknown

no docs found

Bytes.set_from(other : Any) : unknown

no docs found

Bytes.copy(other : Any, at : Any, length : Any) : unknown

no docs found

Bytes.copy(other : Any, to : Any, from : Any, length : Any) : unknown

no docs found

Bytes.set_string(at : Any, value : Any) : unknown

no docs found

Bytes.set_string(at : Any, value : Any, length : Any) : unknown

no docs found

Bytes.get_string(at : Any, length : Any) : unknown

no docs found

Bytes.set_int8(at : Any, value : Any) : unknown

no docs found

Bytes.set_int16(at : Any, value : Any) : unknown

no docs found

Bytes.set_int32(at : Any, value : Any) : unknown

no docs found

Bytes.set_int64(at : Any, value : Any) : unknown

no docs found

Bytes.set_uint8(at : Any, value : Any) : unknown

no docs found

Bytes.set_uint16(at : Any, value : Any) : unknown

no docs found

Bytes.set_uint32(at : Any, value : Any) : unknown

no docs found

Bytes.set_uint64(at : Any, value : Any) : unknown

no docs found

Bytes.set_float32(at : Any, value : Any) : unknown

no docs found

Bytes.set_float64(at : Any, value : Any) : unknown

no docs found

Bytes.get_int8(at : Any) : unknown

no docs found

Bytes.get_int16(at : Any) : unknown

no docs found

Bytes.get_int32(at : Any) : unknown

no docs found

Bytes.get_int64(at : Any) : unknown

no docs found

Bytes.get_uint8(at : Any) : unknown

no docs found

Bytes.get_uint16(at : Any) : unknown

no docs found

Bytes.get_uint32(at : Any) : unknown

no docs found

Bytes.get_uint64(at : Any) : unknown

no docs found

Bytes.get_float32(at : Any) : unknown

no docs found

Bytes.get_float64(at : Any) : unknown

no docs found

Bytes.get(at : Any) : unknown

no docs found

Bytes.set(at : Any, value : Any) : unknown

no docs found

Bytes.bytes() : unknown

no docs found

Bytes.clear() : unknown

no docs found

Bytes.padding(length : Any, align : Any) : unknown

no docs found

Bytes.padding(length : Any) : unknown

no docs found

Bytes.iterate(iter : Any) : unknown

no docs found

Bytes.iteratorValue(iter : Any) : unknown

no docs found

import "luxe: bytes" for BytesReader

no docs found

BytesReader.pos : unknown

no docs found

BytesReader.pos=(v : Any) : unknown

no docs found

BytesReader.bytes : unknown

no docs found

BytesReader.new(source_bytes : Any) : BytesReader

no docs found

BytesReader.from_string(string : Any) : unknown

no docs found

BytesReader.skip(count : Any) : unknown

no docs found

BytesReader.check_bounds(to_read : Any) : unknown

no docs found

BytesReader.get_string(length : Any) : unknown

no docs found

BytesReader.get_int8() : unknown

no docs found

BytesReader.get_int16() : unknown

no docs found

BytesReader.get_int32() : unknown

no docs found

BytesReader.get_int64() : unknown

no docs found

BytesReader.get_uint8() : unknown

no docs found

BytesReader.get_uint16() : unknown

no docs found

BytesReader.get_uint32() : unknown

no docs found

BytesReader.get_uint64() : unknown

no docs found

BytesReader.get_float32() : unknown

no docs found

BytesReader.get_float64() : unknown

no docs found

import "luxe: bytes" for BytesWriter

no docs found

BytesWriter.pos : Num

no docs found

BytesWriter.pos=(v : Num) : unknown

no docs found

BytesWriter.count : Num

no docs found

BytesWriter.capacity : Num

no docs found

BytesWriter.bytes : String

no docs found

BytesWriter.inner : Bytes

no docs found

BytesWriter.new(initial_length : Num) : BytesWriter

no docs found

BytesWriter.resize(new_capacity : Num) : None

no docs found

BytesWriter.ensure(write_length : Num) : None

no docs found

BytesWriter.write_string(string : String, length : Num) : None

no docs found

BytesWriter.write_string(string : String) : None

no docs found

BytesWriter.write_string_aligned4(string : String, length : Num) : None

no docs found

BytesWriter.write_string_aligned4(string : String) : None

no docs found

BytesWriter.write_string_and_length(string : String, length : Num) : None

no docs found

BytesWriter.write_string_and_length(string : String) : None

no docs found

BytesWriter.write_int8(value : Num) : None

no docs found

BytesWriter.write_uint8(value : Num) : None

no docs found

BytesWriter.write_int16(value : Num) : None

no docs found

BytesWriter.write_int32(value : Num) : None

no docs found

BytesWriter.write_int64(value : Num) : None

no docs found

BytesWriter.write_uint16(value : Num) : None

no docs found

BytesWriter.write_uint32(value : Num) : None

no docs found

BytesWriter.write_uint64(value : Num) : None

no docs found

BytesWriter.write_float32(value : Num) : None

no docs found

BytesWriter.write_float64(value : Num) : None

no docs found

BytesWriter.write_uuid(uuid : String) : None

no docs found

import "luxe: bytes" for Floats

no docs found

Floats.new(elements : Any) : Floats

Create a new Floats instance that can store the amount of elements specified.

Floats.length : unknown

Get the size of the array in bytes. Since a float is 4 bytes, this should always be value.size * 4.

Floats.capacity : 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.

Floats.size : unknown

Get the amount of elements in the array.

Floats [index : Any] : unknown

Get the float value at a specific index.

Floats [index : Any]=(value : Any) : unknown

Set the float value at a specific index.

Floats.resize(elements : Any) : unknown

Resize array to new size.

Floats.get(at : Any) : unknown

Get the float value at a specific index.

Floats.set(at : Any, value : Any) : unknown

Set the float value at a specific index.

Floats.set(list : 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.

Floats.set(list : 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

Floats.ortho(left : 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.

Floats.perspective(fov_vertical : Any, aspect : Any, near : Any, far : Any) : unknown

Makes the array a 4x4 (16 elements) perspective projection matrix for camera rendering.

Floats.transform(px : 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.

Floats.iterate(iter : Any) : unknown

no docs found

Floats.iteratorValue(iter : Any) : unknown

no docs found

import "luxe: bytes" for Uint16

Tight uint16 array. Handeled internally as a C++ array, but will properly be deallocated by the wren garbage collector.

Uint16.new(elements : Any) : Uint16

Create an array with the requested amount of elements

Uint16.length : 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.

Uint16 [index : Any] : unknown

Get the int value at a specific index.

Uint16 [index : Any]=(value : Any) : unknown

Set the int value at a specific index.

Uint16.get(at : Any) : unknown

Get the int value at a specific index.

Uint16.set(at : Any, value : Any) : unknown

Set the int value at a specific index.

Uint16.set(list : 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.

Uint16.set(list : 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.

Uint16.iterate(iter : Any) : unknown

no docs found

Uint16.iteratorValue(iter : Any) : unknown

no docs found

import "luxe: bytes" for Uint32

Tight uint32 array. Handeled internally as a C++ array, but will properly be deallocated by the wren garbage collector.

Uint32.new(elements : Any) : Uint32

Create an array with the requested amount of elements

Uint32.length : 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.

Uint32 [index : Any] : unknown

Get the int value at a specific index.

Uint32 [index : Any]=(value : Any) : unknown

Set the int value at a specific index.

Uint32.get(at : Any) : unknown

Get the int value at a specific index.

Uint32.set(at : Any, value : Any) : unknown

Set the int value at a specific index.

Uint32.set(list : 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.

Uint32.set(list : 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.

Uint32.iterate(iter : Any) : unknown

no docs found

Uint32.iteratorValue(iter : Any) : unknown

no docs found