uleb128 static method

BcsType<int, int> uleb128([
  1. BcsTypeOptions<int, int>? options
])

Implementation

static BcsType<int,int> uleb128([BcsTypeOptions<int,int>? options]) {
  return dynamicSizeBcsType<int,int>(
    name: 'uleb128',
    read: (reader) => reader.readULEB(),
    serialize: (value, {BcsWriterOptions? options}) {
      return Uint8List.fromList(ulebEncode(value));
    },
    validate: options?.validate,
  );
}