C# 클래스 FoundationDB.Storage.Memory.IO.SnapshotWriter

파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
PadPageIfNeeded ( int pageSize, byte padByte ) : void

메소드 상세

FlushAsync() 공개 메소드

public FlushAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
리턴 Task

SnapshotWriter() 공개 메소드

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
리턴 FoundationDB.Client

WriteHeaderAsync() 공개 메소드

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
리턴 Task

WriteJumpTableAsync() 공개 메소드

public WriteJumpTableAsync ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
리턴 Task

WriteLevelAsync() 공개 메소드

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