writeLeb128String method

int writeLeb128String(
  1. String s, {
  2. Encoding encoding = dart_convert.latin1,
})

Writes String s inside a LEB128 bytes block.

Implementation

int writeLeb128String(String s,
    {dart_convert.Encoding encoding = dart_convert.latin1}) {
  var bs = encoding.encode(s);
  return writeLeb128Block(bs);
}