public void put ( int data ) { // If the buffer is small. if ( mBuffer . capacity ( ) < ( mLength + 1 ) ) { expandBuffer ( mLength + ADDITIONAL_BUFFER_SIZE ) ; } mBuffer . put ( ( byte ) data ) ; ++ mLength ; }
Add a byte at the current position .