BorshStringSizedEncoder constructor

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

Creates an encoder for fixed-length string data types.

Implementation

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