Examples of PartitionMapType2


Examples of com.github.stephenc.javaisotools.udflib.structures.PartitionMapType2

        // partition map type 1, length 6, volume sequence number 0, partition number 0
        PartitionMapType1 myPartitionMapType1 = new PartitionMapType1();
        byte myPartitionMapType1Bytes[] = myPartitionMapType1.getBytes();

        if (metadataFileLocation1 > 0) {
            PartitionMapType2 myPartitionMapType2 = new PartitionMapType2();
            EntityID partitionTypeIdentifier = new EntityID();
            partitionTypeIdentifier.setIdentifier("*UDF Metadata Partition");
            partitionTypeIdentifier.IdentifierSuffix = udfVersionIdentifierSuffix;
            myPartitionMapType2.setupMetadataPartitionMap(partitionTypeIdentifier, 1, 0, metadataFileLocation1,
                    metadataFileLocation2, 0xFFFFFFFF, metadataAllocationUnitSize, metadataAlignmentUnitSize, (byte) 0);
            byte myPartitionMapType2Bytes[] = myPartitionMapType2.getBytes();

            myLogicalVolumeDescriptor.NumberofPartitionMaps = 2;
            myLogicalVolumeDescriptor.PartitionMaps =
                    new byte[myPartitionMapType1Bytes.length + myPartitionMapType2Bytes.length];

View Full Code Here

Examples of com.github.stephenc.javaisotools.udflib.structures.PartitionMapType2

            // partition map type 1, length 6, volume sequence number 0, partition number 0
            PartitionMapType1 myPartitionMapType1 = new PartitionMapType1();
            byte myPartitionMapType1Bytes[] = myPartitionMapType1.getBytes();

            if (mainMetadataFileLocation > 0) {
                PartitionMapType2 myPartitionMapType2 = new PartitionMapType2();
                EntityID partitionTypeIdentifier = new EntityID();
                partitionTypeIdentifier.setIdentifier("*UDF Metadata Partition");
                partitionTypeIdentifier.IdentifierSuffix = udfVersionIdentifierSuffix;
                myPartitionMapType2.setupMetadataPartitionMap(partitionTypeIdentifier, 1, 0, mainMetadataFileLocation,
                        mirrorMetadataFileLocation, 0xFFFFFFFF, metadataAllocationUnitSize, metadataAlignmentUnitSize,
                        (byte) 0);
                byte myPartitionMapType2Bytes[] = myPartitionMapType2.getBytes();

                myLogicalVolumeDescriptor.NumberofPartitionMaps = 2;
                myLogicalVolumeDescriptor.PartitionMaps =
                        new byte[myPartitionMapType1Bytes.length + myPartitionMapType2Bytes.length];

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.