Skip to content

Conversation

@bernardassan
Copy link
Contributor

fix stream writeInt and readInt api change

Add writeIntLittleAny fn for writing arbitrary type ints and enums as byte aligned integers

Add enumToLittleEndianBytes for computing the hash of arbitrary size enums

Add BiggerInt fn for determining the next larger byte aligned int that can hold the same range of values as the supplied int type

fix stream writeInt and readInt api change

Add writeIntLittleAny fn for writing arbitrary type ints and enums as
byte aligned integers

Add enumToLittleEndianBytes for computing the hash of arbitrary size
enums

Add BiggerInt fn for determining the next larger byte aligned int that
can hold the same range of values as the supplied int type
use std ByteAlignedInt type for storing and reading arbitrary ints|enums

Remove simple one line functions
@ikskuh ikskuh merged commit f0a7836 into ziglibs:master Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants