Description
Add includeBytes function in AssemblyScript, similar to Rust's include_bytes, which during compilation reads the contents of a file and places it into the data section of the binary.
Context
AssemblyScript recently added a StaticArray, which is similar to arrays in C, which includes the length and continuous bytes.
APIdeclare function includeBytes(path: string): StaticArray<u8>;
https://github.com/near/near-sdk-as/issues/214
Description Add
includeBytes
function in AssemblyScript, similar to Rust'sinclude_bytes
, which during compilation reads the contents of a file and places it into the data section of the binary.Context AssemblyScript recently added a
StaticArray
, which is similar to arrays in C, which includes the length and continuous bytes.API
declare function includeBytes(path: string): StaticArray<u8>;