OperationContext
Object Hierarchy:
Description:
public abstract class OperationContext :
Object
Per-operation settings snapshot and error path for ValueCodec calls.
Codecs may be reused; traversal state belongs here, not in the codec. Construct
DecodeContext or EncodeContext for each operation.
Content:
Properties:
- public uint max_depth { get; set; }
Maximum recursive depth accepted by workers and codecs.
- public uint64 max_input_bytes { get; set; }
Maximum source size accepted by a worker.
- public uint max_nodes { get; set; }
Maximum number of nodes accepted by a worker.
- public Settings settings { get; }
Policies captured when this operation began.
Creation methods:
Methods:
- public string path ()
Return the current $-rooted error path.
- public void pop ()
Remove the last path segment after a nested codec call.
- public void push_index (uint index)
Add an array index to the diagnostic
path. Pair with
pop.
- public void push_key (string key)
Add a map-key segment to the diagnostic
path. Pair with
pop.
- public void push_property (string name)
Add a property segment to the diagnostic
path. Pair with
pop.
- public void visit_node () throws Error
Charge one visited node against this operation's node budget.
Inherited Members:
All known members inherited from class GLib.Object