Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.UINT8


public class ActionPushParser {

  private static PushedValue<?> parsePushedValue(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

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

    switch (type.value()) {
    case 0: return new PushedString(type, SWFParserHelpers.parseString(parser, 0x00006, fieldName + "::String"));
    case 1: return new PushedFloat(type, SWFParserHelpers.parseFloat(parser, 0x00006, fieldName + "::Float"));
    case 2: return new PushedNull(type);
    case 3: return new PushedUndefined(type);
    case 4: return new PushedRegisterNumber(type, parseUINT8(parser, 0x00006, fieldName + "::RegisterNumber"));
View Full Code Here


*/
public class AS3LookupswitchParser {

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

    final UINT8 opcode = parseUINT8(parser, 0x00006, fieldName + "::opcode");
    final INT24 defaultOffset = parseINT24(parser, 0x00006, fieldName + "::default_offset");
    final EncodedU30 caseCounts = EncodedU30Parser.parse(parser, fieldName + "::case_counts");

    final List<INT24> caseOffsets = new ArrayList<INT24>();

View Full Code Here

* Parses ActionScript 3 'setlocal0' instructions.
*/
public final class AS3Setlocal0Parser {

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

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

* Parses ActionScript 3 'findpropstrict' instructions.
*/
public final class AS3FindpropstrictParser {

  public static AS3Findpropstrict 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 AS3Findpropstrict(opcode, index);
  }
View Full Code Here

* Parses ActionScript 3 'not' instructions.
*/
public final class AS3NotParser {

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

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

* Parses ActionScript 3 'setglobalslot' instructions.
*/
public final class AS3SetglobalslotParser {

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

    return new AS3Setglobalslot(opcode, slotIndex);
  }
View Full Code Here

import tv.porst.swfretools.parser.SWFParserException;

public class AS3Getlocal3Parser {

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

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

  }

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

    final EncodedU30 name = EncodedU30Parser.parse(parser, fieldName + "::name");
    final UINT8 kind = parseUINT8(parser, 0x00006, fieldName + "::kind");
    final ITraitKind data = parseTraitKind(parser, kind, fieldName + "::data");

    final boolean hasMetaData = (kind.value() >>> 4 & 0x4) != 0;

    final EncodedU30 metaDataCount = hasMetaData ? EncodedU30Parser.parse(parser, fieldName + "::metadata_count") : null;

    final List<EncodedU30> metaData = hasMetaData ? new ArrayList<EncodedU30>() : null;
View Full Code Here

*/
public final class AS3AstypelateParser {

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

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

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

* Parses ActionScript 3 'kill' instructions.
*/
public final class AS3KillParser {

  public static AS3Kill 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 AS3Kill(opcode, index);
  }
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.