Table of Contents

Interface IPdfByteSource

Namespace
PdfEngine.Vector.Parsing
Assembly
PdfEngine.Vector.dll

Provides bounded random-access byte reading over PDF data sources with 64-bit offsets.

public interface IPdfByteSource : IDisposable
Inherited Members

Properties

Length

long Length { get; }

Property Value

long

Position

long Position { get; set; }

Property Value

long

Methods

Read(Span<byte>)

int Read(Span<byte> destination)

Parameters

destination Span<byte>

Returns

int

ReadByte()

int ReadByte()

Returns

int

ReadMemory(long, int)

ReadOnlyMemory<byte> ReadMemory(long offset, int length)

Parameters

offset long
length int

Returns

ReadOnlyMemory<byte>

Seek(long, SeekOrigin)

void Seek(long offset, SeekOrigin origin = SeekOrigin.Begin)

Parameters

offset long
origin SeekOrigin

Slice(long, long)

IPdfByteSource Slice(long offset, long length)

Parameters

offset long
length long

Returns

IPdfByteSource