Methods (13) Properties (2)
Namespace: SchwabenCode.QuickIO

Syntax

public class QuickIOFileChunk

Summary

Represents a file chunk

Methods

public void QuickIOFileChunk(UInt64 position, Byte[] bytes)

Parameters

position

UInt64

Start position

bytes

Byte[]

Bytes

public Boolean BytesEquals(QuickIOFileChunk chunk)

Parameters

chunk

QuickIOFileChunk

Chunks to verify with

Returns

True if both bytes equals. Uses

public QuickIOHashResult CalculateHash(QuickIOHashImplementationType hashImplementationType)

CalculateHash(HashAlgorithm hashAlgorithm)

File chunk hash calculation

public QuickIOHashResult CalculateHash(HashAlgorithm hashAlgorithm)

Returns

QuickIOHashResult

CalculateMD5Hash(QuickIOPathInfo pathInfo)

File chunk hash calculation

public QuickIOHashResult CalculateMD5Hash(QuickIOPathInfo pathInfo)

Returns

QuickIOHashResult

CalculateSha1Hash()

File chunk hash calculation

public QuickIOHashResult CalculateSha1Hash()

Returns

QuickIOHashResult

public QuickIOHashResult CalculateSha256Hash(QuickIOPathInfo pathInfo)

Returns

QuickIOHashResult

public QuickIOHashResult CalculateSha384Hash(QuickIOPathInfo pathInfo)

Returns

QuickIOHashResult

public QuickIOHashResult CalculateSha512Hash(QuickIOPathInfo pathInfo)

Returns

QuickIOHashResult

ChunkEquals(QuickIOFileChunk chunk)

First PositionEquals then BytesEquals. Does not overwrite default ChunkEquals method!

public Boolean ChunkEquals(QuickIOFileChunk chunk)

Parameters

chunk

QuickIOFileChunk

Chunks to verify with

Returns

Returns true if both executed methods are true

InternalBytesEquals(QuickIOFileChunk chunk)

Internal usage. Does not verify parameter.

private Boolean InternalBytesEquals(QuickIOFileChunk chunk)

InternalPositionEquals(QuickIOFileChunk chunk)

Internal usage. Does not verify parameter.

private Boolean InternalPositionEquals(QuickIOFileChunk chunk)
public Boolean PositionEquals(QuickIOFileChunk chunk)

Parameters

chunk

QuickIOFileChunk

Chunks to verify with

Returns

True if both position equals

Properties

Bytes

Bytes

public Byte[] Bytes { get; set; }

Position

Start position

public UInt64 Position { get; set; }