Next: , Up: syslib bytevectors accessors   [Index]


12.17.5.1 8-bit setters and getters

For these operations: the argument bv is a bytevector object; the argument fx-idx is a non–negative fixnum representing an index in the bytevector; fx-val is a fixnum representing a value to be stored in a bytevector.

Unsafe Operation: $bytevector-u8-ref bv fx-idx

Return a fixnum representing the octet at offset fx-idx in bv.

Unsafe Operation: $bytevector-s8-ref bv fx-idx

Return a fixnum representing the byte at offset fx-idx in bv.

Unsafe Operation: $bytevector-set! bv fx-idx fx-value
Unsafe Operation: $bytevector-u8-set! bv fx-idx fx-value
Unsafe Operation: $bytevector-s8-set! bv fx-idx fx-value

Store the octet or byte fx-value at index fx-idx of bv.