rustVecU8 static method
Rust vector values
Implementation
static CustomLayout rustVecU8({String? property}) {
final length = padding(u32(property: "length"), propery: "length");
final layout = struct([
length,
padding(u32(), propery: "length_padding"),
blob(offset(length, -8), property: 'data'),
]);
return CustomLayout(
layout: layout,
encoder: (data) => {"data": data},
decoder: (data) => data["data"],
property: property,
);
}