Examples of UINT8


Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'declocal' instructions.
*/
public final class AS3DeclocalParser {

  public static AS3Declocal parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 index = EncodedU30Parser.parse(parser, fieldName + "::index");

    return new AS3Declocal(opcode, index);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'ifnge' instructions.
*/
public final class AS3IfngeParser {

  public static AS3Ifnge parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final INT24 offset = parseINT24(parser, 0x00006, fieldName + "::offset");

    return new AS3Ifnge(opcode, offset);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'pushnull' instructions.
*/
public final class AS3PushnullParser {

  public static AS3Pushnull parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Pushnull(opcode);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static MorphLineStyleArray parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 lineStyleCount = parseUINT8(parser, 0x00006, fieldName + "::LineStyleCount");
    final UINT16 lineStyleCountExtended = parseUINT16If(parser, 0x00006, lineStyleCount.value() == 0xFF, fieldName + "::LineStyleCountExtended");

    final int normalizedCount = lineStyleCount.value() == 0xFF ? lineStyleCountExtended.value() : lineStyleCount.value();

    final List<MorphLineStyle> lineStyles = new ArrayList<MorphLineStyle>();

    for (int i=0;i<normalizedCount;i++) {
      lineStyles.add(MorphLineStyleParser.parse(parser, String.format(fieldName + "::LineStyles[%d]", i)));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

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

    final EncodedU30 name = EncodedU30Parser.parse(parser, fieldName + "::name");
    final EncodedU30 superName = EncodedU30Parser.parse(parser, fieldName + "::super_name");
    final UINT8 flags = parseUINT8(parser, 0x00006, fieldName + "::flags");

    final EncodedU30 protectedNs = ((flags.value() & 0x08) == 0) ? null : EncodedU30Parser.parse(parser, fieldName + "::protectedNs");
    final EncodedU30 interfaceCount = EncodedU30Parser.parse(parser, fieldName + "::intrf_count");

    final List<EncodedU30> interfaces = new ArrayList<EncodedU30>();

    for (int i=0;i<interfaceCount.value();i++) {
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'lessthan' instructions.
*/
public final class AS3LessthanParser {

  public static AS3Lessthan parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Lessthan(opcode);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

*/
public final class AS3ConvertuParser {

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

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

    return new AS3Convertu(opcode);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

    final UINT16 characterID = parseUINT16(parser, 0x00006, fieldName + "::CharacterID");
    final UINT16 placeDepth = parseUINT16(parser, 0x00006, fieldName + "::PlaceDepth");
    final Matrix placeMatrix = MatrixParser.parse(parser, fieldName + "::PlaceMatrix");
    final CxFormWithAlpha colorTransform = CxFormWithAlphaParser.parse(parser, fieldName + "::CxFormWithAlpha");
    final FilterList filterList = FilterListParser.parseIf(parser, buttonHasFilterList, fieldName + "::FilterList");
    final UINT8 blendMode = parseUINT8If(parser, 0x00006, buttonHasBlendMode, fieldName + "::BlendMode");

    return new ButtonRecord2(buttonReserved, buttonHasBlendMode, buttonHasFilterList,
        buttonStateHitTest, buttonStateDown, buttonStateOver,
        buttonStateUp, characterID, placeDepth, placeMatrix,
        colorTransform, filterList, blendMode);
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'iftrue' instructions.
*/
public final class AS3IftrueParser {

  public static AS3Iftrue parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final INT24 offset = parseINT24(parser, 0x00006, fieldName + "::offset");

    return new AS3Iftrue(opcode, offset);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'strictequals' instructions.
*/
public final class AS3StrictequalsParser {

  public static AS3Strictequals parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");

    return new AS3Strictequals(opcode);
  }
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.