Table of Contents

Class ByteArrayInputBytes

Namespace
UglyToad.PdfPig.Core
Assembly
UglyToad.PdfPig.Core.dll

Input bytes from a byte array.

public class ByteArrayInputBytes : IInputBytes, IDisposable
Inheritance
ByteArrayInputBytes
Implements
Inherited Members

Constructors

ByteArrayInputBytes(byte[])

Create a new ByteArrayInputBytes.

public ByteArrayInputBytes(byte[] bytes)

Parameters

bytes byte[]

ByteArrayInputBytes(IReadOnlyList<byte>)

Create a new ByteArrayInputBytes.

public ByteArrayInputBytes(IReadOnlyList<byte> bytes)

Parameters

bytes IReadOnlyList<byte>

Properties

CurrentByte

public byte CurrentByte { get; }

Property Value

byte

CurrentOffset

public long CurrentOffset { get; }

Property Value

long

Length

public long Length { get; }

Property Value

long

Methods

Dispose()

public void Dispose()

IsAtEnd()

public bool IsAtEnd()

Returns

bool

MoveNext()

public bool MoveNext()

Returns

bool

Peek()

public byte? Peek()

Returns

byte?

Read(byte[], int?)

public int Read(byte[] buffer, int? length = null)

Parameters

buffer byte[]
length int?

Returns

int

Seek(long)

public void Seek(long position)

Parameters

position long