- encodePersist
- decodePersist
- encodeTypeMap
- decodeTypeMap
- encodeType
- decodeType
- injectCustomSection
- encodeAndInject
encodes the type annotations
Parameters
annotations
Object
Returns Buffer
encodes the type annoations for persist
Parameters
annotations
stream
buffer-pipe? (optional, defaultnew Stream()
)annoations
Object
Returns Buffer
decodes the persist annotations
Parameters
buf
BufferObject
encodes a typeMap definition
Parameters
definition
Objectstream
buffer-pipe? (optional, defaultnew Stream()
)
Returns Buffer
decodes the TypeMap section
Parameters
buf
BufferObject
encodes the type annotations
Parameters
annotations
stream
buffer-pipe? (optional, defaultnew Stream()
)definition
Object
Returns Buffer
decodes the Type section
Parameters
buf
BufferObject
injects custom sections into a wasm binary
Parameters
Returns Buffer
encodes a json definition and injects it into a wasm binary
Parameters