Examples of UINT8


Examples of tv.porst.splib.binaryparser.UINT8

   *
   * @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

Examples of tv.porst.splib.binaryparser.UINT8

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

Examples of tv.porst.splib.binaryparser.UINT8

      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

Examples of tv.porst.splib.binaryparser.UINT8

* 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

Examples of tv.porst.splib.binaryparser.UINT8

    }
  }

  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

Examples of tv.porst.splib.binaryparser.UINT8

* 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

Examples of tv.porst.splib.binaryparser.UINT8

* 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

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'popscope' instructions.
*/
public final class AS3PopscopeParser {

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

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

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'nextvalue' instructions.
*/
public final class AS3NextvalueParser {

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

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

Examples of tv.porst.splib.binaryparser.UINT8

*/
public final class AS3ConstructParser {

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

    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final EncodedU30 argCount = EncodedU30Parser.parse(parser, fieldName + "::arg_count");

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