Bstf
Binary Stof format (application/bstf).
#[main]
fn main() {
const object = new {
msg: "hello, world",
val: 42,
};
const bytes = blobify("bstf", object);
assert_eq(typeof bytes, "blob");
const dest = new {};
parse(bytes, dest, "bstf");
assert_eq(dest.msg, "hello, world");
assert_eq(dest.val, 42);
}Last updated