Show / Hide Table of Contents

Interface IMountedDataPageReader

Reads through a IMountedDataPage in groups of one or more samples. Samples within a group are always in ascending timestamp order, regardless of the requested ReadDirection.

The grouping effect is implementation-dependent. A page may return samples singly or all in a single group.

Namespace: MESL.SqlRace.Domain.MountedSessions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IMountedDataPageReader

Properties

Count

Gets the number of samples available in the next call to CopyTimestamps(Int64[]) and CopyRawSamples(Byte[], Int32, Int32).

Declaration
int Count { get; }
Property Value
Type Description
System.Int32

Methods

CopyRawSamples(Byte[], Int32, Int32)

Copies raw (un-converted) samples to the specified buffer. Sufficient space must be provided for each sample based on SampleSize.

Declaration
int CopyRawSamples(byte[] buffer, int offset, int samples)
Parameters
Type Name Description
System.Byte[] buffer

Buffer sufficient for the requested sample count. The maximum supported sample width is 8 bytes.

System.Int32 offset

Offset into the samples to start copying from; measured in samples, not bytes.

System.Int32 samples

Number of samples to copy; measured in samples, not bytes.

Returns
Type Description
System.Int32

Number of bytes copied.

CopyTimestamps(Int64[])

Copies Count timestamps to the specified buffer.

Declaration
void CopyTimestamps(long[] buffer)
Parameters
Type Name Description
System.Int64[] buffer

Timestamps buffer.

Next()

Advances to the next group of samples within the page in the ReadDirection. Must be called and return true prior to accessing Count, CopyTimestamps(Int64[]) or CopyRawSamples(Byte[], Int32, Int32).

Declaration
bool Next()
Returns
Type Description
System.Boolean

true if advanced to the next group of samples.

Back to top Generated by DocFX