topOffBuffer method

void topOffBuffer()

For internal use only. Triggers a sync that will fill any available space in the buffer with any un-synced events.

Implementation

void topOffBuffer() {
  final bufferAvailableCount = NativeBridge.getBufferAvailableCount(id);

  if (bufferAvailableCount > 0) {
    syncBuffer(lastFrameSynced + 1, bufferAvailableCount);
  }
}