UNPKG

@mrhiden/cstruct

Version:

For packing and unpacking bytes (C like structures) in/from Buffer based on Object/Array type for parsing.

7 lines (6 loc) 340 B
/// <reference types="node" /> export declare function hexToBuffer(hex: string): Buffer; export declare function bufferToHex(buffer: Buffer): string; export declare function printBuffer(buffer: Buffer): string; export declare function removeNonHex(dirtyHex: string): string; export declare function hexToBufferEx(dirtyHex: string): Buffer;