Package tv.porst.splib.binaryparser

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


* 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

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

* 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

* 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

* 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

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

  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

* 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

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

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.