Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.UINT8


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

    final UINT8 fillStyleCount = parseUINT8(parser, 0x00006, fieldName + "::FillStyleCount");
    final UINT16 fillStyleCountExtended = parseUINT16If(parser, 0x00006, fillStyleCount.value() == 0xFF, fieldName + "::FillStyleCountExtended");

    final int normalizedCount = fillStyleCount.value() == 0xFF ? fillStyleCountExtended.value() : fillStyleCount.value();

    final List<MorphFillStyle> fillStyles = new ArrayList<MorphFillStyle>();

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


*/
public final class AS3AddiParser {

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

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

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

* Parses ActionScript 3 'setlocal' instructions.
*/
public final class AS3SetlocalParser {

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

* 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

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

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

* 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

* 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

* 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

  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

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.