Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.UINT8


* Parses ActionScript 3 'dup' instructions.
*/
public final class AS3DupParser {

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

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


* Parses ActionScript 3 'setlocal1' instructions.
*/
public class AS3Setlocal1Parser {

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

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

* Parses ActionScript 3 'returnvoid' instructions.
*/
public final class AS3ReturnvoidParser {

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

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

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

    final UINT8 fillStyleType = parseUINT8(parser, 0x00006, fieldName + "::FillStyleType");
    final int fillStyleTypeValue = fillStyleType.value();
    final RGBA startColor = RGBAParser.parseIf(parser, fillStyleTypeValue == 0x00, fieldName + "::StartColor");
    final RGBA endColor = RGBAParser.parseIf(parser, fillStyleTypeValue == 0x00, fieldName + "::EndColor");
    final Matrix startGradientMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::StartGradientMatrix");
    final Matrix endGradientMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::EndGradientMatrix");
    final MorphGradient gradient = MorphGradientParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::Gradient");
View Full Code Here

import tv.porst.swfretools.parser.SWFParserException;

public class AS3Setlocal3Parser {

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

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

      paramTypes.add(EncodedU30Parser.parse(parser, String.format(fieldName + "::param_type[%d]", i)));
    }

    final EncodedU30 name = EncodedU30Parser.parse(parser, fieldName + "::name");

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

    final OptionInfo optionInfo = (flags.value() & 0x8) == 0 ? null : OptionInfoParser.parse(parser, fieldName + "::options");
    final ParamInfo paramInfo = (flags.value() & 0x80) == 0 ? null : ParamInfoParser.parse(parser, paramCount, fieldName + "::param_names");

    return new MethodInfo(paramCount, returnType, new EncodedU30List(paramTypes), name, flags, optionInfo, paramInfo);
  }
View Full Code Here

* Parses ActionScript 3 'istypelate' instructions.
*/
public final class AS3IstypelateParser {

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

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

    }
  }

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

    final UINT8 kind = parseUINT8(parser, 0x00006, fieldName + "::kind");
    final IMultiname data = parseData(parser, kind, fieldName + "::data");

    return new MultinameInfo(kind, data);
  }
View Full Code Here

* Parses ActionScript 3 'lshift' instructions.
*/
public final class AS3LshiftParser {

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

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

* Parses ActionScript 3 'equals' instructions.
*/
public final class AS3EqualsParser {

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

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

TOP

Related Classes of tv.porst.splib.binaryparser.UINT8

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.