You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CappedString was previously backed by a `[u8; N]`, which required zeroing the buffer on creation. It now uses a `[MaybeUninit<u8>; N]`, which does need to be zeroed. This should improve the performance of creating a new CappedString, at the cost of slightly more unsafe code required in its implementation. Additionally, `as_bytes` and `as_bytes_mut` methods were introduced. These are primarily used internally in the implementation of CappedString, but are also provided as part of the public API to allow users to do low-level operations on the underlying buffer backing the CappedString. `as_bytes_mut` is unsafe, as this method can be used to violate the UTF-8 property of the CappedString, which is undefined behaviour. |
3 years ago | |
|---|---|---|
| .. | ||
| encoding | 3 years ago | |
| strings | 3 years ago | |
| convert.rs | 3 years ago | |
| either.rs | 3 years ago | |
| lib.rs | 3 years ago | |
| sink.rs | 3 years ago | |
| uuid.rs | 3 years ago | |