u8data s16 - part-cw/lambdanative GitHub Wiki
(u8data-s16 buf)
u8data-s16 returns an signed 16-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