Examples of ByteSerializer


Examples of com.esotericsoftware.kryo.serialize.ByteSerializer

  public Kryo () {
    Serializer serializer;
    // Primitives.
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(int.class, new IntSerializer());
    register(long.class, new LongSerializer());
    register(float.class, new FloatSerializer());
    register(double.class, new DoubleSerializer());
    // Primitive wrappers.
    register(Boolean.class, new BooleanSerializer());
    register(Byte.class, new ByteSerializer());
    register(Character.class, new CharSerializer());
    register(Short.class, new ShortSerializer());
    register(Integer.class, new IntSerializer());
    register(Long.class, new LongSerializer());
    register(Float.class, new FloatSerializer());
View Full Code Here

Examples of com.esotericsoftware.kryo.serializers.DefaultSerializers.ByteSerializer

    // Primitives and string. Primitive wrappers automatically use the same registration as primitives.
    register(int.class, new IntSerializer());
    register(String.class, new StringSerializer());
    register(float.class, new FloatSerializer());
    register(boolean.class, new BooleanSerializer());
    register(byte.class, new ByteSerializer());
    register(char.class, new CharSerializer());
    register(short.class, new ShortSerializer());
    register(long.class, new LongSerializer());
    register(double.class, new DoubleSerializer());
    register(void.class, new VoidSerializer());
View Full Code Here

Examples of com.hazelcast.nio.serialization.ConstantSerializers.ByteSerializer

    }

    private void registerConstantSerializers() {
        registerConstant(DataSerializable.class, dataSerializerAdapter);
        registerConstant(Portable.class, portableSerializerAdapter);
        registerConstant(Byte.class, new ByteSerializer());
        registerConstant(Boolean.class, new BooleanSerializer());
        registerConstant(Character.class, new CharSerializer());
        registerConstant(Short.class, new ShortSerializer());
        registerConstant(Integer.class, new IntegerSerializer());
        registerConstant(Long.class, new LongSerializer());
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

    this.index = (int) ByteToolkit.getLong(data, 1, 1, true);
  }

  @Override
  public byte[] getData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(OPCODE);
    ser.addByte(this.index);

    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

  public void setWideData(byte[] data, DecompilationContext dc) {
    this.index = (int) ByteToolkit.getLong(data, 2, 2, true);
  }

  public byte[] getWideData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(_wide.OPCODE);
    ser.addByte(OPCODE);
    ser.addShort(this.index);

    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

    this.value = (int) ByteToolkit.getLong(data, 1, 1, true);
  }

  @Override
  public byte[] getData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(OPCODE);
    ser.addByte(this.value);
    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

    this.label = new Label(addr);
  }

  @Override
  public byte[] getData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(OPCODE);
    ser.addShort(this.label.getPosition() - dc.getPosition());
    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

    this.label = new Label(addr);
  }

  @Override
  public byte[] getData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(OPCODE);
    ser.addShort(this.label.getPosition() - dc.getPosition());
    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

    this.index = (int) ByteToolkit.getLong(data, 1, 1, true);
  }

  @Override
  public byte[] getData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(OPCODE);
    ser.addByte(this.index);
    return ser.getBytes();
  }
View Full Code Here

Examples of net.sf.rej.util.ByteSerializer

  public void setWideData(byte[] data, DecompilationContext dc) {
    this.index = (int) ByteToolkit.getLong(data, 2, 2, true);
  }

  public byte[] getWideData(DecompilationContext dc) {
    ByteSerializer ser = new ByteSerializer(true);
    ser.addByte(_wide.OPCODE);
    ser.addByte(OPCODE);
    ser.addShort(this.index);

    return ser.getBytes();
  }
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.