/** * {@inheritDoc} */ @Override public void putChar(char c) { prepareForAccess(2); if (componentCursor.getRemaining() >= 4) { componentCursor.putChar(c); index += 2; } else { byte b0; byte b1; if (order.equals(ByteOrder.BIG_ENDIAN)) { b0 = (byte) ((c >> 8) & 0xff); b1 = (byte) (c & 0xff); } else { b0 = (byte) (c & 0xff); b1 = (byte) ((c >> 8) & 0xff); } put(b0); put(b1); } }
/** * {@inheritDoc} */ @Override public void putChar(char c) { prepareForAccess(2); if (componentCursor.getRemaining() >= 4) { componentCursor.putChar(c); index += 2; } else { byte b0; byte b1; if (order.equals(ByteOrder.BIG_ENDIAN)) { b0 = (byte) ((c >> 8) & 0xff); b1 = (byte) (c & 0xff); } else { b0 = (byte) (c & 0xff); b1 = (byte) ((c >> 8) & 0xff); } put(b0); put(b1); } }
/** * @inheritDoc */ public void putChar( char c ) { prepareForAccess( 2 ); if ( componentCursor.getRemaining() >= 4 ) { componentCursor.putChar( c ); index += 2; } else { byte b0; byte b1; if ( order.equals( ByteOrder.BIG_ENDIAN ) ) { b0 = ( byte ) ( ( c >> 8 ) & 0xff ); b1 = ( byte ) ( ( c >> 0 ) & 0xff ); } else { b0 = ( byte ) ( ( c >> 0 ) & 0xff ); b1 = ( byte ) ( ( c >> 8 ) & 0xff ); } put( b0 ); put( b1 ); } }
/** * {@inheritDoc} */ @Override public void putChar(int index, char c) { cursor(index).putChar(c); }
/** * @inheritDoc */ public void putChar( char c ) { prepareForAccess( 2 ); cursor.putChar( c ); } }
/** * {@inheritDoc} */ @Override public void putChar(int index, char c) { cursor(index).putChar(c); }
/** * {@inheritDoc} */ @Override public void putChar(char c) { prepareForAccess(2); cursor.putChar(c); } }
/** * @inheritDoc */ public void putChar( int index, char c ) { cursor( index ).putChar( c ); }
/** * {@inheritDoc} */ @Override public void putChar(char c) { prepareForAccess(2); cursor.putChar(c); } }