C# Class FoundationDB.Storage.Memory.IO.SnapshotWriter

Mostrar archivo Open project: BedeGaming/foundationdb-dotnet-client

Public Methods

Method Description
FlushAsync ( CancellationToken ct ) : Task
SnapshotWriter ( FoundationDB.Storage.Memory.IO.Win32SnapshotFile file, int levels, int pageSize, int bufferSize ) : FoundationDB.Client
WriteHeaderAsync ( FoundationDB.Storage.Memory.IO.SnapshotFormat headerFlags, Uuid128 uid, ulong sequence, long count, long timestamp, IFdbTuple>.IDictionary attributes ) : Task

Write the header to the file

This needs to be called before writing any level to the file

WriteJumpTableAsync ( CancellationToken ct ) : Task
WriteLevelAsync ( int level, IntPtr segment, CancellationToken ct ) : Task

Private Methods

Method Description
PadPageIfNeeded ( int pageSize, byte padByte ) : void

Method Details

FlushAsync() public method

public FlushAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
return Task

SnapshotWriter() public method

public SnapshotWriter ( FoundationDB.Storage.Memory.IO.Win32SnapshotFile file, int levels, int pageSize, int bufferSize ) : FoundationDB.Client
file FoundationDB.Storage.Memory.IO.Win32SnapshotFile
levels int
pageSize int
bufferSize int
return FoundationDB.Client

WriteHeaderAsync() public method

Write the header to the file
This needs to be called before writing any level to the file
public WriteHeaderAsync ( FoundationDB.Storage.Memory.IO.SnapshotFormat headerFlags, Uuid128 uid, ulong sequence, long count, long timestamp, IFdbTuple>.IDictionary attributes ) : Task
headerFlags FoundationDB.Storage.Memory.IO.SnapshotFormat
uid Uuid128
sequence ulong
count long
timestamp long
attributes IFdbTuple>.IDictionary
return Task

WriteJumpTableAsync() public method

public WriteJumpTableAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
return Task

WriteLevelAsync() public method

public WriteLevelAsync ( int level, IntPtr segment, CancellationToken ct ) : Task
level int
segment System.IntPtr
ct System.Threading.CancellationToken
return Task