/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { combineCodec, fixDecoderSize, fixEncoderSize, getUtf8Decoder, getUtf8Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type Name = string; export type NameArgs = Name; export function getNameEncoder(): FixedSizeEncoder { return fixEncoderSize(getUtf8Encoder(), 64); } export function getNameDecoder(): FixedSizeDecoder { return fixDecoderSize(getUtf8Decoder(), 64); } export function getNameCodec(): FixedSizeCodec { return combineCodec(getNameEncoder(), getNameDecoder()); }