UNPKG

@ckb-lumos/codec

Version:

Make your own molecule binding in JavaScript(TypeScript)

18 lines 677 B
import { BytesLike } from "./base"; export declare function bytifyRawString(rawString: string): Uint8Array; /** * convert a {@link BytesLike} to an Uint8Array * @param bytesLike */ export declare function bytify(bytesLike: BytesLike): Uint8Array; export declare function equal(a: BytesLike, b: BytesLike): boolean; /** * convert a {@link BytesLike} to an even length hex string prefixed with "0x" * @param buf * @example * hexify([0,1,2,3]) // "0x010203" * hexify(Buffer.from([1, 2, 3])) // "0x010203" */ export declare function hexify(buf: BytesLike): string; export declare function concat(...bytesLikes: BytesLike[]): Uint8Array; //# sourceMappingURL=bytes.d.ts.map