Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: Bytevectors as Integers, Previous: Bytevector Endianness, Up: Bytevectors [Contents][Index]
Bytevectors can be created, copied, and analyzed with the following procedures and C functions.
Return a new bytevector of len bytes. Optionally, if fill is given, fill it with fill; fill must be in the range [-128,255].
Return true if obj is a bytevector.
Equivalent to scm_is_true (scm_bytevector_p (obj))
.
Return the length in bytes of bytevector bv.
Likewise, return the length in bytes of bytevector bv.
Return is bv1 equals to bv2—i.e., if they have the same length and contents.
Fill bytevector bv with fill, a byte.
Copy len bytes from source into target, starting reading from source-start (a positive index within source) and start writing at target-start. It is permitted for the source and target regions to overlap.
Return a newly allocated copy of bv.
Return the byte at index in bytevector bv.
Set the byte at index in bv to value.
Low-level C macros are available. They do not perform any type-checking; as such they should be used with care.
Return the length in bytes of bytevector bv.
Return a pointer to the contents of bytevector bv.
Next: Bytevectors as Integers, Previous: Bytevector Endianness, Up: Bytevectors [Contents][Index]