Beispiel #1
0
        private WriteOperation writeEntry(BaseEntry entry)
        {
            lock (_entriesTableLock)
            {
                var bytes = entry.GetBytes();
                if (!_entryWriter.CheckCanWrite(bytes.Length))
                {
                    handleEntryTableSector();
                }

                var operation = _entryWriter.Write(bytes);
                entry.Position = operation.Position;//position of length bytes
                return(operation);
            }
        }