Package fr.xlim.ssd.capmanipulator.library

Examples of fr.xlim.ssd.capmanipulator.library.ArrayInitInfo


     * @throws fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException
     *
     */
    public ArrayInitInfo load(CapInputStream in) throws UnableToReadCapFileException {

        ArrayInitInfo arrayInitInfo = new ArrayInitInfo();
        arrayInitInfo.setType(in.readByte());
        arrayInitInfo.setCount(in.readShort());

        arrayInitInfo.setValues(new ArrayList<Byte>(arrayInitInfo.getCount()));

        for (int i = 0; i < arrayInitInfo.getCount(); i++) {
            arrayInitInfo.getValues().add(in.readByte());
        }

        return arrayInitInfo;
    }
View Full Code Here


        staticFieldComponent.setArrayInit(new ArrayList<ArrayInitInfo>(staticFieldComponent.getArrayInitCount()));

        for (int i = 0; i < staticFieldComponent.getArrayInitCount(); i++) {

            ArrayInitInfo ar = new ArrayInitInfoRead().load(in);
            staticFieldComponent.getArrayInit().add(ar);
        }

        staticFieldComponent.setDefaultValueCount(in.readShort());
        staticFieldComponent.setNonDefaultValueCount(in.readShort());
View Full Code Here

TOP

Related Classes of fr.xlim.ssd.capmanipulator.library.ArrayInitInfo

Copyright © 2018 www.massapicom. 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.