int insertInt16(Uint8List buffer, int offset, int element) { buffer[offset + 1] = element; buffer[offset] = element >> 8; return offset + 2; }