encodeBytes function
Implementation
Uint8List encodeBytes(Uint8List v) {
var length = encodeInt(v.length);
var pad0s = 32 - v.length % 32;
List<int> pads = [];
for(var i = 0; i < pad0s; i++) {
pads.add(0);
}
return Uint8List.fromList(length + v + pads);
}