类 StructureDataDeep


  • public class StructureDataDeep
    extends StructureDataA
    Make a deep copy of an existing StructureData, so that all the data is contained in this object
    从以下版本开始:
    6/19/2014
    作者:
    caron
    • 方法详细资料

      • copy

        public static StructureDataDeep copy​(StructureData sdata,
                                             StructureMembers members)
        Make deep copy from sdata to another StructureData object whose data is self contained
        参数:
        sdata - original sdata
        members - the StructureData members. a reference is kept to this object
        返回:
        StructureData with all data self contained
      • copyToArrayBB

        public static ArrayStructureBB copyToArrayBB​(ArrayStructureBak as,
                                                     java.nio.ByteOrder bo,
                                                     boolean canonical)
                                              throws java.io.IOException
        Make deep copy from an ArrayStructure to a ArrayStructureBB whose data is contained in a ByteBuffer
        参数:
        as - original ArrayStructure
        bo - what byte order to use ? (null for any)
        canonical - packing must be canonical
        返回:
        ArrayStructureBB with all data self contained
        抛出:
        java.io.IOException
      • copyToArrayBB

        public static ArrayStructureBB copyToArrayBB​(StructureData sdata)
        Make deep copy from a StructureData to a ArrayStructureBB whose data is contained in a ByteBuffer.
        参数:
        sdata - original ArrayStructure.
        返回:
        ArrayStructureBB with all data self contained
      • copyToArrayBB

        public static ArrayStructureBB copyToArrayBB​(StructureData sdata,
                                                     StructureMembers sm,
                                                     java.nio.ByteOrder bo)
        Make deep copy from a StructureData to a ArrayStructureBB whose data is contained in a ByteBuffer
        参数:
        sdata - original ArrayStructure
        sm - the StructureData members. a reference is kept to this object
        bo - Byte Order of the ByteBuffer
        返回:
        ArrayStructureBB with all data self contained
      • copyToArrayBB

        public static int copyToArrayBB​(StructureData sdata,
                                        ArrayStructureBB abb)
        Make deep copy from a StructureData into the given ArrayStructureBB
        参数:
        sdata - original data from here
        abb - copy data into this ArrayStructureBB, starting from wherever the ByteBuffer current position is
        返回:
        number of bytes copied