Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

u8data-s8 returns an signed 8-bit integer

Parameter Description
v The u8data to be converted

Example

Example 1: Show off all u8data conversion functions at once.

> (define buf (u8vector->u8data (u8vector 130 130 180 250)))
> (u8data-u8 buf)
130
> (u8data-s8 buf)
-126
> (u8data-u16 buf)
33410
> (u8data-s16 buf)
-32126
> (u8data-u32 buf)
2189604090
> (u8data-s32 buf)
-2189604090
Clone this wiki locally