Package tv.porst.swfretools.parser.actions.as3

Source Code of tv.porst.swfretools.parser.actions.as3.AS3AddiParser

package tv.porst.swfretools.parser.actions.as3;

import static tv.porst.swfretools.parser.SWFParserHelpers.parseUINT8;
import tv.porst.splib.binaryparser.UINT8;
import tv.porst.swfretools.parser.SWFBinaryParser;
import tv.porst.swfretools.parser.SWFParserException;

/**
* Parses ActionScript 3 'add' instructions.
*/
public final class AS3AddiParser {

  public static AS3Addi parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Addi(opcode);
  }

}
TOP

Related Classes of tv.porst.swfretools.parser.actions.as3.AS3AddiParser

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.