Code example for Allocation

Methods: copyFrom, getType