BinStruct.PrimitiveEncoder (bin_struct v0.2.16)

Useful in registered_callbacks when library can't achieve automatic type conversion.

iex> BinStruct.PrimitiveEncoder.uint8(0)
<<0>>

Summary

Functions

bool(value, bit_size \\ 8)

float32_be(value)

float32_le(value)

float64_be(value)

float64_le(value)

int8(value)

int16_be(value)

int16_le(value)

int32_be(value)

int32_le(value)

int64_be(value)

int64_le(value)

int_be(value, bit_size)

int_le(value, bit_size)

uint8(value)

uint16_be(value)

uint16_le(value)

uint32_be(value)

uint32_le(value)

uint64_be(value)

uint64_le(value)

uint_be(value, bit_size)

uint_le(value, bit_size)