C# Class BlobSync.Helpers.SerializationHelper

Exibir arquivo Open project: kpfaulkner/BlobSync

Public Methods

Method Description
ReadBinaryCompleteSignature ( Stream s ) : CompleteSignature
ReadSizeBasedBinarySignature ( Stream s ) : SizeBasedCompleteSignature

Gets SizeBasedCompleteSignature. Format is: first 4 bytes are number of CompleteSig's there are. For each complete sig, the format is 4 bytes, number of entries.

WriteBinarySizedBasedSignature ( SizeBasedCompleteSignature sig, Stream s ) : void

Method Details

ReadBinaryCompleteSignature() public static method

public static ReadBinaryCompleteSignature ( Stream s ) : CompleteSignature
s Stream
return BlobSync.Datatypes.CompleteSignature

ReadSizeBasedBinarySignature() public static method

Gets SizeBasedCompleteSignature. Format is: first 4 bytes are number of CompleteSig's there are. For each complete sig, the format is 4 bytes, number of entries.
public static ReadSizeBasedBinarySignature ( Stream s ) : SizeBasedCompleteSignature
s Stream
return BlobSync.Datatypes.SizeBasedCompleteSignature

WriteBinarySizedBasedSignature() public static method

public static WriteBinarySizedBasedSignature ( SizeBasedCompleteSignature sig, Stream s ) : void
sig BlobSync.Datatypes.SizeBasedCompleteSignature
s Stream
return void