Table of Contents

Class PdfFileByteSource

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

File-backed IPdfByteSource with random access over a FileStream.

public sealed class PdfFileByteSource : IPdfByteSource, IDisposable
Inheritance
PdfFileByteSource
Implements
Inherited Members

Constructors

PdfFileByteSource(string)

public PdfFileByteSource(string filePath)

Parameters

filePath string

Properties

Length

public long Length { get; }

Property Value

long

Position

public long Position { get; set; }

Property Value

long

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Read(Span<byte>)

public int Read(Span<byte> destination)

Parameters

destination Span<byte>

Returns

int

ReadByte()

public int ReadByte()

Returns

int

ReadMemory(long, int)

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

Parameters

offset long
length int

Returns

ReadOnlyMemory<byte>

Seek(long, SeekOrigin)

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

Parameters

offset long
origin SeekOrigin

Slice(long, long)

public IPdfByteSource Slice(long offset, long length)

Parameters

offset long
length long

Returns

IPdfByteSource