Next: , Up: bytevectors utils   [Index]


27.1.1 Single–identifier setters and getters

The following syntaxes are wrappers for bytevector-*-ref and bytevector-*-set! specifying the endiannes in their name, without the need of an additional argument (useful in macros). The following bindings are exported by the library (vicare containers bytevectors).

Words of 8-bit

The 8-bit setters and getters exist with the only purpose of having 8-bit identifiers with the same naming scheme of the others; this is useful when building identifiers in macros.

Syntax: bytevector-u8-litend-set! bv idx val

Setter for unsigned 8-bit words. An alias for bytevector-u8-set!.

Syntax: bytevector-u8-bigend-set! bv idx val

Setter for unsigned 8-bit words. An alias for bytevector-u8-set!.

Syntax: bytevector-u8-litend-ref bv idx val

Getter for unsigned 8-bit words. An alias for bytevector-u8-ref.

Syntax: bytevector-u8-bigend-ref bv idx val

Getter for unsigned 8-bit words. An alias for bytevector-u8-ref.

Syntax: bytevector-s8-litend-set! bv idx val

Setter for signed 8-bit words. An alias for bytevector-s8-set!.

Syntax: bytevector-s8-bigend-set! bv idx val

Setter for signed 8-bit words. An alias for bytevector-s8-set!.

Syntax: bytevector-s8-litend-ref bv idx val

Getter for signed 8-bit words. An alias for bytevector-s8-ref.

Syntax: bytevector-s8-bigend-ref bv idx val

Getter for signed 8-bit words. An alias for bytevector-s8-ref.

Words of 16-bit

Syntax: bytevector-u16-litend-set! bv idx val

Setter for unsigned 16-bit little–endian words.

Syntax: bytevector-u16-bigend-set! bv idx val

Setter for unsigned 16-bit big–endian words.

Syntax: bytevector-u16-litend-ref bv idx val

Getter for unsigned 16-bit little–endian words.

Syntax: bytevector-u16-bigend-ref bv idx val

Getter for unsigned 16-bit big–endian words.

Syntax: bytevector-s16-litend-set! bv idx val

Setter for signed 16-bit little–endian words.

Syntax: bytevector-s16-bigend-set! bv idx val

Setter for signed 16-bit big–endian words.

Syntax: bytevector-s16-litend-ref bv idx val

Getter for signed 16-bit little–endian words.

Syntax: bytevector-s16-bigend-ref bv idx val

Getter for signed 16-bit big–endian words.

Words of 32-bit

Syntax: bytevector-u32-litend-set! bv idx val

Setter for unsigned 32-bit little–endian words.

Syntax: bytevector-u32-bigend-set! bv idx val

Setter for unsigned 32-bit big–endian words.

Syntax: bytevector-u32-litend-ref bv idx val

Getter for unsigned 32-bit little–endian words.

Syntax: bytevector-u32-bigend-ref bv idx val

Getter for unsigned 32-bit big–endian words.

Syntax: bytevector-s32-litend-set! bv idx val

Setter for signed 32-bit little–endian words.

Syntax: bytevector-s32-bigend-set! bv idx val

Setter for signed 32-bit big–endian words.

Syntax: bytevector-s32-litend-ref bv idx val

Getter for signed 32-bit little–endian words.

Syntax: bytevector-s32-bigend-ref bv idx val

Getter for signed 32-bit big–endian words.

Words of 64-bit

Syntax: bytevector-u64-litend-set! bv idx val

Setter for unsigned 64-bit little–endian words.

Syntax: bytevector-u64-bigend-set! bv idx val

Setter for unsigned 64-bit big–endian words.

Syntax: bytevector-u64-litend-ref bv idx val

Getter for unsigned 64-bit little–endian words.

Syntax: bytevector-u64-bigend-ref bv idx val

Getter for unsigned 64-bit big–endian words.

Syntax: bytevector-s64-litend-set! bv idx val

Setter for signed 64-bit little–endian words.

Syntax: bytevector-s64-bigend-set! bv idx val

Setter for signed 64-bit big–endian words.

Syntax: bytevector-s64-litend-ref bv idx val

Getter for signed 64-bit little–endian words.

Syntax: bytevector-s64-bigend-ref bv idx val

Getter for signed 64-bit big–endian words.

Single–precision floating–point numbers

Syntax: bytevector-ieee-single-litend-set! bv idx val

Setter for single–precision floating–point little–endian words.

Syntax: bytevector-ieee-single-bigend-set! bv idx val

Setter for single–precision floating–point big–endian words.

Syntax: bytevector-ieee-single-litend-ref bv idx val

Getter for single–precision floating–point little–endian words.

Syntax: bytevector-ieee-single-bigend-ref bv idx val

Getter for single–precision floating–point big–endian words.

Double precision floating–point numbers

Syntax: bytevector-ieee-double-litend-set! bv idx val

Setter for double–precision floating–point little–endian words.

Syntax: bytevector-ieee-double-bigend-set! bv idx val

Setter for double–precision floating–point big–endian words.

Syntax: bytevector-ieee-double-litend-ref bv idx val

Getter for double–precision floating–point little–endian words.

Syntax: bytevector-ieee-double-bigend-ref bv idx val

Getter for double–precision floating–point big–endian words.


Next: , Up: bytevectors utils   [Index]