PdfBytesByteSource class
A PdfByteSource backed by a complete in-memory buffer. Handy for tests and for adapting already-downloaded bytes to the source-based API.
- Implemented types
Constructors
- PdfBytesByteSource(Uint8List _bytes)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
length
→ Future<
int?> -
The total number of bytes, or null when the length is not known ahead
of time (e.g. a server that answers neither HEAD nor a ranged GET with
a total). A null length makes progressive loading fall back to a plain
sequential download.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Releases any resources (open connections, buffers). Optional; the
default does nothing. Sources are single-use unless documented
otherwise.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readRange(
int start, int endExclusive) → Future< Uint8List> -
Returns the bytes in
[start, endExclusive). Implementations clamp the range to the available data: a request past the end returns fewer bytes (a short read), and a request wholly past the end returns an empty list.startis clamped to be non-negative;endExclusive <= startyields an empty list.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited