BTDB.KVDBLayer.OnDiskMemoryMappedFileCollection.File.Writer.FlushBuffer C# (CSharp) Method

FlushBuffer() public method

public FlushBuffer ( ) : void
return void
                public override void FlushBuffer()
                {
                    if (Pos != 0) lock (_file._lock)
                        {
                            ExpandIfNeeded((long)Ofs + Pos);
                            fixed (byte* src = Buf)
                            {
                                CopyMemory(_file._pointer + Ofs, src, Pos);
                            }
                            Ofs += (ulong)Pos;
                            _file._trueLength = (long)Ofs;
                            Pos = 0;
                        }
                }