UNPKG

@metaplex-foundation/umi-serializers

Version:

A comprehensive set of serializers for the Umi framework

23 lines (20 loc) 459 B
/** * Defines the options for unit serializers. * @category Serializers */ /** * Creates a void serializer. * * @param options - A set of options for the serializer. */ function unit(options = {}) { return { description: options.description ?? 'unit', fixedSize: 0, maxSize: 0, serialize: () => new Uint8Array(), deserialize: (_bytes, offset = 0) => [undefined, offset] }; } export { unit }; //# sourceMappingURL=unit.mjs.map