[][src]Module no_proto::pointer

All values in NP_Buffers are accessed and modified through NP_Ptrs

NP_ Pointers are the primary abstraction to read, update or delete values in a buffer. Pointers should never be created directly, instead the various methods provided by the library to access the internals of the buffer should be used.

Once you have a pointer you can read it's contents if it's a scalar value (.to_string(), .to_int8(), etc) or convert it to a collection type (.as_table(), .as_map(), etc). When you attempt to read, update, or convert a pointer the schema is checked for that pointer location. If the schema conflicts with what you're attempting to do, for example if you call to_string() but the schema for that location is of int8 type, the operation will fail. As a result, you should be careful to make sure your reads and updates to the buffer line up with the schema you provided.

Modules

any
bytes
misc
numbers
string

Structs

NP_Ptr

The base data type, all information is stored/retrieved against pointers

Traits

NP_Value
NP_ValueInto