Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.UINT8


* Parses ActionScript 3 'pushbyte' instructions.
*/
public final class AS3PushbyteParser {

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

    return new AS3Pushbyte(opcode, byteValue);
  }
View Full Code Here


* Parses ActionScript 3 'newactivation' instructions.
*/
public final class AS3NewactivationParser {

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

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

*/
public final class AS3CallmethodParser {

  public static AS3Callmethod 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");
    final EncodedU30 argCount = EncodedU30Parser.parse(parser, fieldName + "::arg_count");

    return new AS3Callmethod(opcode, index, argCount);
  }
View Full Code Here

* Parses ActionScript 3 'initproperty' instructions.
*/
public final class AS3InitpropertyParser {

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

* Parses ActionScript 3 'pushuint' instructions.
*/
public final class AS3PushuintParser {

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

* Parses ActionScript 3 'label' instructions.
*/
public final class AS3LabelParser {

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

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

* Parses ActionScript 3 'inlocali' instructions.
*/
public final class AS3InlocaliParser {

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

* Parses ActionScript 3 'nop' instructions.
*/
public final class AS3NopParser {

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

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

* Parses ActionScript 3 'hasnext' instructions.
*/
public final class AS3HasnextParser {

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

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

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

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

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

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

    for (int i=0;i<normalizedCount;i++) {
      fillStyles.add(FillStyleParser.parse(parser, String.format(fieldName + "::FillStyles[%d]", fillStyles.size())));
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.