UNPKG

@nervosnetwork/ckb-sdk-utils

Version:

Utils module of @nervosnetwork/ckb-sdk-core

10 lines (9 loc) 663 B
export declare const offsetSize = 4; export declare const fullLengthSize = 4; export declare const getOffsets: (elmLengths: number[]) => number[]; export declare const serializeArray: (array: string | Uint8Array) => string; export declare const serializeStruct: (struct: Map<string, string | Uint8Array>) => string; export declare const serializeFixVec: (fixVec: string | (string | Uint8Array)[]) => string; export declare const serializeDynVec: (dynVec: (string | Uint8Array)[]) => string; export declare const serializeTable: (table: Map<string, string | Uint8Array>) => string; export declare const serializeOption: (innerItem?: string | undefined) => string;