Reads, writes, and recognizes Photoshop tagged-block framing.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode(
PsTaggedBlock block, {PsTaggedBlockWideLengthResolver wideLengthResolver = _wideBySignature, int alignment = 4, bool preserveDeclaredLength = false, bool preservePadding = false}) → Uint8List - Encodes one tagged block into a new byte buffer.
-
hasSignature(
PsBinaryReader reader, {int relativeOffset = 0, Set< String> signatures = standardSignatures}) → bool -
Tests whether a supported signature starts at
relativeOffset. -
paddingLength(
PsBinaryReader reader, {required int payloadLength, int alignment = 4, Set< String> signatures = standardSignatures}) → int - Returns optional zero padding before the next recognizable block.
-
readHeader(
PsBinaryReader reader, {Set< String> signatures = standardSignatures, PsTaggedBlockWideLengthResolver wideLengthResolver = _wideBySignature, int maxPayloadBytes = psMaxExactInteger}) → PsTaggedBlockHeader -
Reads one tagged-block header and leaves
readerat its payload. -
usesWideLengthSignature(
PsBinaryReader reader) → bool - Returns whether the current standard signature selects a 64-bit length.
-
write(
PsBinaryWriter writer, PsTaggedBlock block, {PsTaggedBlockWideLengthResolver wideLengthResolver = _wideBySignature, int alignment = 4, bool preserveDeclaredLength = false, bool preservePadding = false}) → void -
Writes one tagged block at the current
writerposition.
Constants
-
standardSignatures
→ const Set<
String> - Signatures conventionally used by Photoshop tagged blocks.