Closed joseluis closed 4 years ago
I made a standalone example based on the one in the README, and added some printing in order to show the byte buffer after each operation:
This is the output:
$ cargo run -q --example quick = Quick Example = bytes: [1, 1, 0, 0] name: Billy Joel bytes: [1, 1, 0, 4, 0, 6, 0, 11, 0, 0, 0, 0, 10, 66, 105, 108, 108, 121, 32, 74, 111, 101, 108] tag: first tag bytes: [1, 1, 0, 4, 0, 6, 0, 11, 0, 23, 0, 0, 10, 66, 105, 108, 108, 121, 32, 74, 111, 101, 108, 0, 28, 0, 0, 2, 0, 32, 0, 32, 0, 38, 0, 0, 0, 0, 0, 9, 102, 105, 114, 115, 116, 32, 116, 97, 103] age: 0 bytes: [1, 1, 0, 4, 0, 6, 0, 11, 0, 23, 0, 0, 10, 66, 105, 108, 108, 121, 32, 74, 111, 101, 108, 0, 28, 0, 49, 2, 0, 32, 0, 32, 0, 38, 0, 0, 0, 0, 0, 9, 102, 105, 114, 115, 116, 32, 116, 97, 103, 0, 0, 0, 0, 1]
Thanks for the PR!
I made a standalone example based on the one in the README, and added some printing in order to show the byte buffer after each operation:
This is the output: