From 6a2caa06ff5ffe15aa213da77b3c56c442d5235e Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sun, 8 Jun 2025 09:28:16 +0300 Subject: [PATCH] Added c-bytevector character accessors --- README.md | 24 ++++++++++++++++++++++++ documentation/foreign-c.html | 26 ++++++++++++++++++++++++++ documentation/foreign-c.pdf | Bin 58772 -> 60041 bytes foreign/c.sld | 5 +++++ foreign/c/c-bytevectors.scm | 12 ++++++++++++ 5 files changed, 67 insertions(+) diff --git a/README.md b/README.md index a62e6d9..aa2d89e 100644 --- a/README.md +++ b/README.md @@ -406,6 +406,30 @@ If _k_ is not a valid index of c-bytevector the behaviour is undefined. Returns the byte at index _k_ of _c-bytevector_. +(**c-bytevector-char-set!** _c-bytevector_ _k_ _char_) + +If _k_ is not a valid index of c-bytevector the behaviour is undefined. + +Stores the _char_ in element _k_ of _c-bytevector_. + +(**c-bytevector-char-ref** _c-bytevector_ _k_) + +If _k_ is not a valid index of c-bytevector the behaviour is undefined. + +Returns the char at index _k_ of _c-bytevector_. + +(**c-bytevector-uchar-set!** _c-bytevector_ _k_ _char_) + +If _k_ is not a valid index of c-bytevector the behaviour is undefined. + +Stores the unsigned _char_ in element _k_ of _c-bytevector_. + +(**c-bytevector-uchar-ref** _c-bytevector_ _k_) + +If _k_ is not a valid index of c-bytevector the behaviour is undefined. + +Returns the unsigned char at index _k_ of _c-bytevector_. + (**c-bytevector-uint-ref** _c-bytevector_ _k_ _endianness_ _size_)
(**c-bytevector-sint-ref** _c-bytevector_ _k_ _endianness_ _size_)
(**c-bytevector-uint-set!** _c-bytevector_ _k_ _n_ _endianness_ _size_)
diff --git a/documentation/foreign-c.html b/documentation/foreign-c.html index 8cf73ac..b37ec65 100644 --- a/documentation/foreign-c.html +++ b/documentation/foreign-c.html @@ -21,6 +21,8 @@ Schemes - 0.10.0 tracker

Maling lists

+

Jenkins