This is used internally to manage MegaPacket handles. More...
Fields: |
|
Constructors: |
|
Properties: |
|
Methods: |
|
This is a collection of (Raw) MegaPacket objects, allocated internally for external delegation.
This is the primary constructor used to create this pool.
This represents the constructor-argument of the same name; parent NetworkEngine used for MegaPacket allocation.
This property has protected assignment rights.
This overload allocates a local/general-purpose MegaPacket object.
When finished with this object, please call Release on the output object.
See also: Release, ContainsThis overload allocates a remote/client-allocated MegaPacket object.
When finished with this object, please call Release on the output object.
This is an internal constructor used to generate a segment of the internal pool.
This constructor is protected.
See also: GeneratePacketThis reports if MP is held internally. (Could describe undefined behavior if True)
This creates a new MetaPacket object, without calling Construct.
The object produced by this routine should immediately be stored and/or constructed, and should not be delegated until it is ready.
This method is protected
This is used internally to allocate a raw MegaPacket. (Doesn't imply a call to Construct)
Please call Allocate instead of this; this has undefined behavior.
This method is protected
This "deallocates" MP, making it a part of this pool again. Please do not pass objects that weren't allocated via Allocate to this command.
The return-value of this method indicates if 'MP' was accepted; may still be accepted automatically later.
Though this documentation states to use this command, that is only when using this class directly.
Classes like NetworkEngine manage objects of this class directly, and follow different storage practices.
Please follow appropriate APIs that house these calls.
See also: Allocate, ContainsThis (Usually forcibly) releases every MegaPacket in MegaPackets.
Exact behavior is dictated by Force; for details, view the main overload's documentation.
See also: Allocate, Contains