/** * Set the source identity string in ASCII * * @param value for the source identity * @return flyweight */ public ImageBuffersReadyFlyweight sourceIdentity(final String value) { buffer.putStringAscii(offset + sourceIdentityOffset(), value); return this; }
/** * Return the source identity string in ASCII * * @return source identity string */ public String sourceIdentity() { return buffer.getStringAscii(offset + sourceIdentityOffset()); }
/** * Get the length of the current message * <p> * NB: must be called after the data is written in order to be accurate. * * @return the length of the current message */ public int length() { final int sourceIdentityOffset = sourceIdentityOffset(); return sourceIdentityOffset + buffer.getInt(offset + sourceIdentityOffset) + SIZE_OF_INT; }
/** * Get the length of the current message * <p> * NB: must be called after the data is written in order to be accurate. * * @return the length of the current message */ public int length() { final int sourceIdentityOffset = sourceIdentityOffset(); return sourceIdentityOffset + buffer.getInt(offset + sourceIdentityOffset) + SIZE_OF_INT; }
/** * Set the source identity string in ASCII * * @param value for the source identity * @return flyweight */ public ImageBuffersReadyFlyweight sourceIdentity(final String value) { buffer.putStringAscii(offset + sourceIdentityOffset(), value); return this; }
/** * Return the source identity string in ASCII * * @return source identity string */ public String sourceIdentity() { return buffer.getStringAscii(offset + sourceIdentityOffset()); }
/** * Return the source identity string in ASCII * * @return source identity string */ public String sourceIdentity() { return buffer.getStringAscii(offset + sourceIdentityOffset()); }
/** * Get the length of the current message * <p> * NB: must be called after the data is written in order to be accurate. * * @return the length of the current message */ public int length() { final int sourceIdentityOffset = sourceIdentityOffset(); return sourceIdentityOffset + buffer.getInt(offset + sourceIdentityOffset) + SIZE_OF_INT; }
/** * Set the source identity string in ASCII * * @param value for the source identity * @return flyweight */ public ImageBuffersReadyFlyweight sourceIdentity(final String value) { buffer.putStringAscii(offset + sourceIdentityOffset(), value); return this; }