[][src]Module pelite::util

Utilities and other tidbits.

Structs

CStr

Nul-terminated C string.

Traits

AlignTo

Helper to implement generic alignment operator.

FromBytes

Converts from a byte slice to a string.

Functions

shannon_entropy

Bits of entropy represented in a given byte slice.

strn

Reads an optionally nul-terminated string from byte buffer.

wstrn

Reads an optionally nul-terminated wide char string from buffer.