You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ ColdString is an 8 byte array (4 bytes on 32-bit machines):
34
34
```rust,ignore
35
35
pub struct ColdString([u8; 8]);
36
36
```
37
-
The array acts as either a pointer to heap data for strings longer than 7 bytes or is the inlined data itself. Below assumes 64-bit, little endian machine.
37
+
The array acts as either a pointer to heap data for strings longer than 7 bytes or is the inlined data itself.
38
38
## Inline Mode
39
39
`self.0[1]` to `self.0[7]` store the bytes of string. In the least significant byte, `self.0[0]`, the least significant bit signifies the inline/heap flag, and is set to "1" for inline mode. The next bits encode the length (always between 0 and 7).
0 commit comments