chickadee » srfi-74 » blob-s16-native-set!

blob-s16-native-set! blob k nprocedure

K must be a valid index of blob; so must the index k+ 1. Endianness must be an endianness object.

These retrieve and set two-octet representations of numbers at indices k and k+1, according to the endianness specified by endianness. The procedures with u16 in their names deal with the unsigned representation, those with s16 with the two's complement representation.

The procedures with native in their names employ the native endianness, and only work at aligned indices: k must be a multiple of 2. It is an error to use them at non-aligned indices.