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

Afficher le fichier Open project: BedeGaming/foundationdb-dotnet-client

Méthodes publiques

Méthode 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

Méthode Description
PadPageIfNeeded ( int pageSize, byte padByte ) : void

Method Details

FlushAsync() public méthode

public FlushAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
Résultat Task

SnapshotWriter() public méthode

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
Résultat FoundationDB.Client

WriteHeaderAsync() public méthode

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
Résultat Task

WriteJumpTableAsync() public méthode

public WriteJumpTableAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
Résultat Task

WriteLevelAsync() public méthode

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