Back to index

LispMe C datatype support

LispMe can read/write data in binary format dictated by C language conventions. Thus LispMe can interpret the databases of the builtin or third-party applications. The basic concept is reading/writing a substring of a buffer retrieved by dm-read-rec (remember, a LispMe string can contain arbitrary binary data including NUL bytes, since its length is stored elsewhere).

To avoid creating a substring for each access, every buffer access function includes a byte offset into the buffer.

The C/PalmOS datatypes supported are:

In any case, the length of the buffer is checked so that no adjacent bytes are overwritten or read.

Other applications for these functions are

Associated language elements

buf-get-cstr buf-get-date buf-get-f32 buf-get-f64 buf-get-s16
buf-get-s32 buf-get-s8 buf-get-time buf-get-ts buf-get-u16
buf-get-u32 buf-get-u8 buf-set-cstr! buf-set-date! buf-set-f32!
buf-set-f64! buf-set-s16! buf-set-s32! buf-set-s8! buf-set-time!
buf-set-ts! buf-set-u16! buf-set-u32! buf-set-u8!