packUint64 method

void packUint64(
  1. int num
)

Implementation

void packUint64(int num) {
  int high = num ~/ 2 ^ 32;
  int low = num % 2 ^ 32;
  _bufferBuilder.append((high & 0xff000000) >>> 24);
  _bufferBuilder.append((high & 0x00ff0000) >>> 16);
  _bufferBuilder.append((high & 0x0000ff00) >>> 8);
  _bufferBuilder.append(high & 0x000000ff);
  _bufferBuilder.append((low & 0xff000000) >>> 24);
  _bufferBuilder.append((low & 0x00ff0000) >>> 16);
  _bufferBuilder.append((low & 0x0000ff00) >>> 8);
  _bufferBuilder.append(low & 0x000000ff);
}