Skip to main content

Module classify

Module classify 

Source
Expand description

classify (docs/plans/batch.md 2.7) as far as the cutter meets it: every error a read, a dereference, a resource read, a charge or a decode returns, to an object’s skip, the input’s failure or a run failure, with the reason and detail docs/BATCH_SPEC.md 7.3 and 9.3 name.

The site rule for an Error::Entry inside a dereference or a resource read (the fourth carried question): it is the reading object’s skip, with the innermost error’s code; only selection’s open of the input’s own top-level rows, or the reach of its containers at registration, makes an entry’s failure the input’s entry_error (entry_error; batch.md 2.7). A string from the bytes is under 7.3’s text rule (text).

Structs§

Reason
A reason of 9.3 and its 7.3 detail, each string taken from the bytes already under 7.3’s text rule (text), and whether one was cut (the row’s cut).

Enums§

Class
Where a failure lands (2.7’s classes).

Constants§

CUT
The longest detail or reason argument, in bytes (7.3’s cut).

Functions§

budget
A budget’s refusal: the input’s own is an object’s skip; a dependency’s fails the input (2.6 step 7); a provider’s, which no input owns, is the allocator’s (host_memory).
charge
A refused charge.
decode
A texture decode’s failure (2.7’s decode row; section 3’s answers).
deref
A dereference’s failure, by DerefError (2.7).
entry_error
Selection’s open of a top-level row of the input that fails: the input’s entry_error, its detail the code, a space and the row’s path, the whole cut to CUT bytes, written by the text rule from the three parts in place, so the path is never copied whole (review round 3’s P2); a class other than a code (a budget, a stop) stays what it is, the input’s or the run’s.
error
The code of an error the bytes decide (7.3), through its wrappers.
known_texture_format
Whether a prepared unsupported-format argument is a pinned format name.
limit
A limit: limit(<kind>, <configured value>), an object’s skip whether its kind is the budget class’s or data (2.7: both at the same sites).
limit_kind
A limit kind’s name in limit(<kind>, ..) (9.3’s table).
outside_view
outside_view(<name>), the name as given (a resource’s path as read).
outside_view_cab
outside_view(<cab>) for a pointer’s external that no file of the view holds: the CAB, what follows its path’s last / (9.3; UnityPy’s PPtr splits on / alone, so a \ stays in the name).
parse
A typetree read’s failure.
render
A Sprite’s render failure (E17; 7.3’s codes for a Sprite): Pillow’s refusals of a crop or an image as an atlas crop’s are named (decompression_bomb, crop_overflow for a box edge outside a C int or long, pillow_memory_error for an image wider than Pillow makes), a field of another shape is read (4.4 step 2’s rule), a sheet of a mode the renderer is not verified on unsupported (as a mesh part left to a later phase is), a canvas past the renderer’s bound is limit(texture_pixels, ..) as a texture’s is, a refused charge or work count is its own class, and a panic decoder_panic; every other exception UnityPy 1.25.2’s SpriteHelper raises is render.
resource
A resource read’s failure from the Environment’s fallback: a resource no candidate finds is outside_view(<path>), its path as read (E65).
text
7.3’s text rule: bytes cut to their first CUT bytes at a code point boundary, an invalid byte counting as one code point, then each invalid byte replaced by U+FFFD; and whether it was cut. The string is allocated once, at the length text_len measures.
text_len
The bytes the text rule’s string of parts takes (an invalid byte’s U+FFFD three of them, so at most 3 x CUT), and whether it cuts: measured, never made.
tree
A tree’s failure: rows that make no tree are tree (the first carried question: 7.3 lists the code, and the core’s TreeError is it).
try_text
text of parts read as one string, as [walk] reads them, into a string reserved fallibly at exactly text_len’s length.
with_argument
name(<argument>), the argument from the bytes under text.