12/**3* StructsPack returns a byte slice containing the values of msg slice packed according to the given format.4* The items of msg slice must match the values required by the format exactly.5* Ex: structs.pack("H", 0)6* @example7* ```javascript8* const structs = require('nuclei/structs');9* const packed = structs.Pack('H', [0]);10* ```11*/12export function Pack(formatStr: string, msg: any): Uint8Array | null {13return null;14}15161718/**19* StructsCalcSize returns the number of bytes needed to pack the values according to the given format.20* Ex: structs.CalcSize("H")21* @example22* ```javascript23* const structs = require('nuclei/structs');24* const size = structs.CalcSize('H');25* ```26*/27export function StructsCalcSize(format: string): number | null {28return null;29}30313233/**34* StructsUnpack the byte slice (presumably packed by Pack(format, msg)) according to the given format.35* The result is a []interface{} slice even if it contains exactly one item.36* The byte slice must contain not less the amount of data required by the format37* (len(msg) must more or equal CalcSize(format)).38* Ex: structs.Unpack(">I", buff[:nb])39* @example40* ```javascript41* const structs = require('nuclei/structs');42* const result = structs.Unpack('H', [0]);43* ```44*/45export function Unpack(format: string, msg: Uint8Array): any | null {46return null;47}48495051