public static void FlushHostBuffer() { if (flushEnd == 0) { return; } instanceBuff.Flush(flushStart, flushEnd); flushEnd = flushStart = 0; }