public final void setByteValue(Object newObj, byte b) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putByte(newObj, memOffset, b); return; } field.setByte(newObj, b); }
public void setByte(Object o, byte v) throws IllegalArgumentException, IllegalAccessException { this.field.setByte(o, v); }
public void setByteB() throws Exception { f_b.setAccessible(true); f_b.setByte(t, (byte) 70); }
public final void setByteValue(Object newObj, byte b) throws IllegalAccessException { if (!isAndroid && memOffset >= 0) { FSTUtil.unFlaggedUnsafe.putByte(newObj, memOffset, b); return; } field.setByte(newObj, b); }
@Override void deserialize(AbstractHessianInput in, Object obj) throws IOException { int value = 0; try { value = in.readInt(); _field.setByte(obj, (byte) value); } catch (Exception e) { logDeserializeError(_field, obj, value, e); } } }
public static void setFieldValue(String name, Object instance, byte value, Class cl) { try { getReflectField(name, instance, cl).setByte(instance, value); } catch (Exception e) { e.printStackTrace(); if (isThrowable) { throw new RuntimeException("setFieldValue byte error " + name + " target " + instance + " value " + value); } } }
public static byte callSetByte(Field thiz, Object obj) throws IllegalArgumentException, IllegalAccessException { thiz.setByte(obj, (byte) 123); return thiz.getByte(obj); }
field.setByte(check, Byte.parseByte(value));
public static byte callSetAndGetByte(Field thiz, Object obj) throws IllegalArgumentException, IllegalAccessException { thiz.setByte(obj, (byte) (thiz.getByte(obj) + 1)); return thiz.getByte(obj); }
field.setInt(instance, Integer.class.cast(o).intValue()); } else if (field.getType().equals(Byte.TYPE)) { field.setByte(instance, Byte.class.cast(o).byteValue()); } else if (field.getType().equals(Double.TYPE)) { field.setDouble(instance, Double.class.cast(o).doubleValue());
setByte(object, value, getType(), Byte.TYPE);
setBoolean(object, ((Boolean) value).booleanValue(), type, Boolean.TYPE); } else if (value instanceof Byte) { setByte(object, ((Byte) value).byteValue(), type, Byte.TYPE); } else if (value instanceof Short) { setShort(object, ((Short) value).shortValue(), type, Short.TYPE);
byte b = input.readByte(); if (field != null) { field.setByte(obj, b);
void deserialize(AbstractHessianInput in, Object obj) throws IOException { int value = 0; try { value = in.readInt(); _field.setByte(obj, (byte) value); } catch (Exception e) { logDeserializeError(_field, obj, value, e); } } }
void deserialize(AbstractHessianInput in, Object obj) throws IOException { int value = 0; try { value = in.readInt(); _field.setByte(obj, (byte) value); } catch (Exception e) { logDeserializeError(_field, obj, value, e); } } }
field.setByte(entity, rs.getByte(index)); } else if (type == Byte.class) { if (rs.getObject(index) == null) {
@Override public void setByte( Object obj, byte value ) { try { field.setByte( obj, value ); } catch ( IllegalAccessException e ) { analyzeError( e, obj ); } }
@Override public void setByte( Object obj, byte value ) { try { field.setByte( obj, value ); } catch ( IllegalAccessException e ) { analyzeError( e, obj ); } }
public void copy (Object original, Object copy) { try { field.setByte(copy, field.getByte(original)); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } } }
public void read (Input input, Object object) { try { field.setByte(object, input.readByte()); } catch (Exception e) { KryoException ex = new KryoException(e); ex.addTrace(this + " (" + type.getName() + ")"); throw ex; } }