文件名称:structs.js:用于创建和操作字节数组的Javascript数据类型
文件大小:6KB
文件格式:ZIP
更新时间:2024-06-05 08:14:58
JavaScript
structs.js 用于创建和操作字节数组的Javascript数据类型 用法示例 import Struct from 'structs.js' var bottle = new Struct ( ) ; var label = bottle . push ( new Struct ( ) ) ; var content = bottle . push ( "B" , [ 119 , 0x41 , 116 , 101 , 114 ] ) ; //push array of unsigned 8bit integers label . push ( "c" , "WATER" ) ; //push a string, strings are pushed as arrays of uint8 charcodes. //structs have some getter-methods
【文件预览】:
structs.js-master
----.gitignore(574B)
----package.json(600B)
----LICENSE.md(1KB)
----README.md(4KB)
----.gitattributes(378B)
----structs.js(7KB)