jon.recoil.org

Module Float32.BytesSource

Sourceval get : bytes -> pos:int -> float32

get b ~pos loads a float32 from b at an offset of pos bytes.

Sourceval unsafe_get : bytes -> pos:int -> float32

unsafe_get b ~pos loads a float32 from b at an offset of pos bytes. Does not check that pos is a valid offset.

Sourceval set : bytes -> pos:int -> float32 -> unit

set b ~pos f stores a float32 to b at an offset of pos bytes.

Sourceval unsafe_set : bytes -> pos:int -> float32 -> unit

unsafe_set b ~pos f stores a float32 to b at an offset of pos bytes. Does not check that pos is a valid offset.