automerge/rust
Conrad Irwin b05c9e83a4
Use AMbyteSpan for AM{list,map}PutBytes ()
* Use AMbyteSpan for byte values

Before this change there was an inconsistency between AMmapPutString
(which took an AMbyteSpan) and AMmapPutBytes (which took a pointer +
length).

Either is fine, but we should do the same in both places. I chose this
path to make it clear that the value passed in was an automerge value,
and to be symmetric with AMvalue.bytes when you do an AMmapGet().

I did not update other APIs (like load) that take a pointer + length, as
that is idiomatic usage for C, and these functions are not operating on
byte values stored in automerge.
2022-12-09 16:11:23 +00:00
..
automerge wasm: improve error messages 2022-12-02 14:42:55 +00:00
automerge-c Use AMbyteSpan for AM{list,map}PutBytes () 2022-12-09 16:11:23 +00:00
automerge-cli Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
automerge-test rust:automerge-test:0.1.0 2022-11-27 16:54:41 +00:00
automerge-wasm automerge-wasm@0.1.19 & automerge-js@2.0.1-alpha.2 2022-12-02 15:10:24 +00:00
edit-trace Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
.gitignore Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
Cargo.toml Move automerge/tests::helpers to crate automerge-test 2022-11-06 19:52:21 +00:00
deny.toml Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00