reference monoe.csbuff

Lua API Reference

This is an interface that helps using C# specific monoe.exe.Core.Bridge.Types.Internals.LazyReadonlyBuffer type.

Properties

NameTypeDescription
uidinteger

monoe.csbuff.new

Creates a new interface in order to use a C# LazyBuffer in Lua. You generally may not use this class by yourself, unless building a specific C# API, as the monoe C# API tries to avoid using this type in end users code.

Parameters

NameTypeDescription
uidinteger

Returns


monoe.csbuff:get

Returns the element at the given index (1-based indexes)

Parameters

NameTypeDescription
indexinteger

Returns


monoe.csbuff:size

Returns the size of the C# buffer

Returns


monoe.csbuff:unpack

Returns an array, now editable

Returns


monoe.csbuff:free

Frees the resource (you may free it after using it)