BorshStringSizedCodec constructor

const BorshStringSizedCodec(
  1. int byteLength, {
  2. BufferEncoding? encoding,
})

Creates a codec for fixed-length string data types.

Implementation

const BorshStringSizedCodec(
  this.byteLength, {
  final BufferEncoding? encoding,
}): encoding = encoding ?? BufferEncoding.utf8;