`wasmer`, a Python extension to run WebAssembly binaries as fast as possible
The method allows to get a string representation of a instance:
A WebAssembly instance has its own memory, represented by the class. The class offers methods to create views of the memory internal buffer, e.g. , , etc. nth string : char memory[nth] char : string (char) nth (string)
A slice can be used as index of the method, which is useful when we already know the size of the data we want to read, e.g.:
Notice that treat bytes in little-endian, as required by the WebAssembly specification, Chapter Structure, Section Instructions, Sub-Section Memory Instructions:
Each view shares the same memory buffer internally.
Source: github.com