Files: b3206558d7fec55487d0c3d4adef1303fe29c547 / docs / index.md
4077 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
- encodePersist
- decodePersist
- encodeTypeMap
- decodeTypeMap
- encodeType
- decodeType
- injectCustomSection
- encodeAndInject
encodes the type annotations
Parameters
annotations
Object
Returns Buffer
encodePersist
encodes the type annoations for persist
Parameters
annotations
stream
buffer-pipe? (optional, defaultnew Stream()
)annoations
Object
Returns Buffer
decodePersist
decodes the persist annotations
Parameters
buf
BufferObject
encodeTypeMap
encodes a typeMap definition
Parameters
definition
Objectstream
buffer-pipe? (optional, defaultnew Stream()
)
Returns Buffer
decodeTypeMap
decodes the TypeMap section
Parameters
buf
BufferObject
encodeType
encodes the type annotations
Parameters
annotations
stream
buffer-pipe? (optional, defaultnew Stream()
)definition
Object
Returns Buffer
decodeType
decodes the Type section
Parameters
buf
BufferObject
injectCustomSection
injects custom sections into a wasm binary
Parameters
Returns Buffer
encodeAndInject
encodes a json definition and injects it into a wasm binary
Parameters
Built with git-ssb-web