2017-12-18 22:04:17 +01:00
|
|
|
namespace pxsim.util {
|
|
|
|
|
|
|
|
export function map16Bit(buffer: Uint8Array, index: number, value: number) {
|
2017-12-19 05:30:56 +01:00
|
|
|
buffer[index] = value & 0xFF;
|
|
|
|
buffer[index + 1] = (value >> 8) & 0xFF;
|
2017-12-18 22:04:17 +01:00
|
|
|
}
|
|
|
|
}
|