On this page:
_ array-header
_ array-header-pointer
_ array-header-pointer/ null
array-header?
make-array-header
array-header-pool
array-header-element-size
array-header-element-count
array-header-allocation-count
array-header-elements
array-header->cvector
Version: 4.1.4.1

1.3 Arrays

_array-header : ctype?
_array-header-pointer : ctype?
_array-header-pointer/null : ctype?

C structure type holding an APR array header.

(array-header? obj)  any
  obj : any/c

Checks whether the given obj is a pointer to an APR array header.

(make-array-header pool    
  element-size    
  element-count    
  allocation-count    
  elements)  array-header?
  pool : pool?
  element-size : exact-integer?
  element-count : exact-integer?
  allocation-count : exact-integer?
  elements : cpointer?

Creates an APR array header from the given fields.

This procedure is unsafe.

(array-header-pool header)  pool?
  header : array-header?
(array-header-element-size header)  exact-integer?
  header : array-header?
(array-header-element-count header)  exact-integer?
  header : array-header?
(array-header-allocation-count header)  exact-integer?
  header : array-header?
(array-header-elements header)  exact-integer?
  header : array-header?

Accessors for the fields of an APR array header.

The array-header-pool procedure is unsafe.

(array-header->cvector header type)  list?
  header : array-header?
  type : ctype?

Converts the native data pointed to by the given header into an FFI vector object with the given element type.

If the element size in the array header doesn’t match the size of the given foreign type, a type error is raised.

This procedure is unsafe.