Examples of UINT8


Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'debug' instructions.
*/
public final class AS3DebugParser {

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

    return new AS3Debug(opcode, debugType, index, reg, extra);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT8

   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static LineStyle4Array 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<LineStyle4> lineStyles = new ArrayList<LineStyle4>();

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

Examples of tv.porst.splib.binaryparser.UINT8

   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static LineStyle3Array 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<LineStyle3> lineStyles = new ArrayList<LineStyle3>();

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

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'greaterthan' instructions.
*/
public final class AS3GreaterthanParser {

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

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

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'pushwith' instructions.
*/
public final class AS3PushwithParser {

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

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

Examples of tv.porst.splib.binaryparser.UINT8

* Parses ActionScript 3 'pop' instructions.
*/
public final class AS3PopParser {

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

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

Examples of tv.porst.splib.binaryparser.UINT8

  public static TraitSlot parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {
    final EncodedU30 slotId = EncodedU30Parser.parse(parser, fieldName + "::slot_id");
    final EncodedU30 typeName = EncodedU30Parser.parse(parser, fieldName + "::type_name");
    final EncodedU30 vIndex = EncodedU30Parser.parse(parser, fieldName + "::vindex");
    final UINT8 vkind = vIndex.value() == 0 ? null : parseUINT8(parser, 0x00006, fieldName + "::vkind");

    return new TraitSlot(slotId, typeName, vIndex, vkind);
  }
View Full Code Here

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

Examples of tv.porst.splib.binaryparser.UINT8

* 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

Examples of tv.porst.splib.binaryparser.UINT8

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