mirror of https://git.sr.ht/~stygianentity/bincode
commit
18b9225ab1
|
|
@ -67,7 +67,7 @@ then the contents.
|
||||||
However, there are some implementation details to be aware of:
|
However, there are some implementation details to be aware of:
|
||||||
|
|
||||||
* `isize`/`usize` are encoded as `i64`/`u64`, for portability.
|
* `isize`/`usize` are encoded as `i64`/`u64`, for portability.
|
||||||
* enums variants are encoded as a `u32` instead of a `uint`.
|
* enums variants are encoded as a `u32` instead of a `usize`.
|
||||||
`u32` is enough for all practical uses.
|
`u32` is enough for all practical uses.
|
||||||
* `str` is encoded as `(u64, &[u8])`, where the `u64` is the number of
|
* `str` is encoded as `(u64, &[u8])`, where the `u64` is the number of
|
||||||
bytes contained in the encoded string.
|
bytes contained in the encoded string.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue