automerge/rust/automerge-c/src/doc
Conrad Irwin b05c9e83a4
Use AMbyteSpan for AM{list,map}PutBytes (#464)
* 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
..
list Fixed clippy violations. 2022-11-27 23:52:47 -08:00
map Fixed clippy violations. 2022-11-27 23:52:47 -08:00
list.rs Use AMbyteSpan for AM{list,map}PutBytes (#464) 2022-12-09 16:11:23 +00:00
map.rs Use AMbyteSpan for AM{list,map}PutBytes (#464) 2022-12-09 16:11:23 +00:00
utils.rs Moved the to_obj_id macro in with AMobjId. 2022-11-27 23:52:47 -08:00