/** * Appends a byte to this buffer. * * @param b The byte to append to the buffer */ public final void append( byte b ) { if ( pos >= buf.length ) { growBuffer(); } buf[pos] = b; pos++; }
/** * Process a UTFMB char * * @param value The value to update * @throws RecognitionException If the token is invalid * @throws TokenStreamException When we weren't able to fetch a token */ public final void utfmb( UpAndNormValue value ) throws RecognitionException, TokenStreamException { Token s = null; matchedProduction( "utfmb()" ); s = LT(1); match(UTFMB); char c = s.getText().charAt( 0 ); value.upValue.append( c ); value.bytes.append( Unicode.charToBytes( c ) ); }
int pos = value.bytes.position(); value.bytes.position( pos ); ava = new Ava( schemaManager, type, rdnUpName.toString(), Strings.utf8ToString( value.bytes.copyOfUsedBytes() ) ); ava = new Ava( schemaManager, type, rdnUpName.toString(), value.bytes.copyOfUsedBytes() );
/** * Process a UTFMB char * * @param value The value to update * @throws RecognitionException If the token is invalid * @throws TokenStreamException When we weren't able to fetch a token */ public final void utfmb( UpAndNormValue value ) throws RecognitionException, TokenStreamException { Token s = null; matchedProduction( "utfmb()" ); s = LT(1); match(UTFMB); char c = s.getText().charAt( 0 ); value.upValue.append( c ); value.bytes.append( Unicode.charToBytes( c ) ); }
int pos = value.bytes.position(); value.bytes.position( pos ); ava = new Ava( schemaManager, type, rdnUpName.toString(), Strings.utf8ToString( value.bytes.copyOfUsedBytes() ) ); ava = new Ava( schemaManager, type, rdnUpName.toString(), value.bytes.copyOfUsedBytes() );
/** * Process a UTFMB char * * @param value The value to update * @throws RecognitionException If the token is invalid * @throws TokenStreamException When we weren't able to fetch a token */ public final void utfmb( UpAndNormValue value ) throws RecognitionException, TokenStreamException { Token s = null; matchedProduction( "utfmb()" ); s = LT(1); match(UTFMB); char c = s.getText().charAt( 0 ); value.upValue.append( c ); value.bytes.append( Unicode.charToBytes( c ) ); }
int pos = value.bytes.position(); value.bytes.position( pos ); ava = new Ava( schemaManager, type, rdnUpName.toString(), Strings.utf8ToString( value.bytes.copyOfUsedBytes() ) ); ava = new Ava( schemaManager, type, rdnUpName.toString(), value.bytes.copyOfUsedBytes() );
/** * Appends a byte to this buffer. * * @param b The byte to append to the buffer */ public final void append( byte b ) { if ( pos >= buf.length ) { growBuffer(); } buf[pos] = b; pos++; }
value.bytes.append( Strings.toByteArray( hexStr ) ); value.isHR = false;
/** * Appends an int to this buffer. WARNING: the int is truncated to * a byte value. * * @param val The integer to append to the buffer */ public final void append( int val ) { if ( pos >= buf.length ) { growBuffer(); } buf[pos] = ( byte ) val; pos++; }
value.bytes.append( ( byte ) c ); value.bytes.append( '=' ); value.bytes.append( '-' ); value.bytes.append( '_' ); value.bytes.append( ( byte ) c ); value.bytes.append( ( byte ) c ); value.bytes.append( '#' ); value.bytes.append( ' ' ); value.bytes.append( '#' ); value.bytes.append( Strings.getBytesUtf8( hexStr ) ); value.bytes.append( Strings.getBytesUtf8( number ) );
/** * Appends an int to this buffer. WARNING: the int is truncated to * a byte value. * * @param val The integer to append to the buffer */ public final void append( int val ) { if ( pos >= buf.length ) { growBuffer(); } buf[pos] = ( byte ) val; pos++; }
value.bytes.append( Strings.toByteArray( hexStr ) ); value.isHR = false;
/** * Appends the bytes to this buffer. * * @param bytes The byte[] to append to the buffer */ public final void append( byte[] bytes ) { if ( pos + bytes.length > buf.length ) { growBuffer( bytes.length ); } System.arraycopy( bytes, 0, buf, pos, bytes.length ); pos += bytes.length; }
value.bytes.append( ( byte ) c ); value.bytes.append( '=' ); value.bytes.append( '-' ); value.bytes.append( '_' ); value.bytes.append( ( byte ) c ); value.bytes.append( ( byte ) c ); value.bytes.append( '#' ); value.bytes.append( ' ' ); value.bytes.append( '#' ); value.bytes.append( Strings.getBytesUtf8( hexStr ) ); value.bytes.append( Strings.getBytesUtf8( number ) );
/** * Appends the bytes to this buffer. * * @param bytes The byte[] to append to the buffer */ public final void append( byte[] bytes ) { if ( pos + bytes.length > buf.length ) { growBuffer( bytes.length ); } System.arraycopy( bytes, 0, buf, pos, bytes.length ); pos += bytes.length; }
value.bytes.append( Strings.toByteArray( hexStr ) ); value.isHR = false;
value.bytes.append( ( byte ) c ); value.bytes.append( '=' ); value.bytes.append( '-' ); value.bytes.append( '_' ); value.bytes.append( ( byte ) c ); value.bytes.append( ( byte ) c ); value.bytes.append( '#' ); value.bytes.append( ' ' ); value.bytes.append( '#' ); value.bytes.append( Strings.getBytesUtf8( hexStr ) ); value.bytes.append( Strings.getBytesUtf8( number ) );