diff --git a/README.md b/README.md index dcd0a13..4fa71aa 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ to being portable by conforming to some specification. - [Primitives 1](#primitives-1) - [Primitives 2](#primitives-2) - [c-bytevector](#c-bytevector) + - [Accessors](#accessors) - [Environment variables](#environment-variables) @@ -267,8 +268,6 @@ Example: ### c-bytevector -#### Creation and deletion - (**make-c-null**) Returns a null C pointer. diff --git a/documentation/foreign-c.html b/documentation/foreign-c.html index 2dbce61..e0b7eec 100644 --- a/documentation/foreign-c.html +++ b/documentation/foreign-c.html @@ -28,7 +28,12 @@ Schemes - 0.10.0
  • Types
  • Primitives 1
  • Primitives 2
  • -
  • c-bytevector
  • +
  • c-bytevector +
  • Environment variables
  • @@ -467,6 +472,14 @@ make -C snow/foreign/c SCHEME_IMPLEMENTATION_NAME (newline) ;> (1 2 3)

    c-bytevector

    +

    Creation and deletion

    +

    (make-c-null)

    +

    Returns a null C pointer.

    +

    (c-null? obj)

    +

    Returns #t if obj is a null C + pointer, otherwise returns #f.

    +

    (c-free c-bytevector)

    +

    Frees c-bytevector from memory.

    (make-c-bytevector k) (make-c-bytevector k fill)

    @@ -477,14 +490,9 @@ make -C snow/foreign/c SCHEME_IMPLEMENTATION_NAME

    If the fill argument is present, it’s value must confine to C uint8_t values , it specifies the initial value for the bytes of the c-bytevector

    -

    (make-c-null)

    -

    Returns a null C pointer.

    -

    (c-null? obj)

    -

    Returns #t if obj is a null C - pointer, otherwise returns #f.

    -

    (c-free c-bytevector)

    -

    Frees c-bytevector from memory.

    -

    native-endianness c-bytevector-s8-set! c-bytevector-s8-ref +

    Accessors

    +

    (native-endianness)

    +

    c-bytevector-s8-set! c-bytevector-s8-ref c-bytevector-s16-set! c-bytevector-s16-ref c-bytevector-s16-native-set! c-bytevector-s16-native-ref c-bytevector-u16-set! c-bytevector-u16-ref diff --git a/documentation/foreign-c.pdf b/documentation/foreign-c.pdf index 60fdede..5aa5ee9 100644 Binary files a/documentation/foreign-c.pdf and b/documentation/foreign-c.pdf differ