@Override
        public LinkedBuffer writeByte(final byte value,
                final WriteSession session, LinkedBuffer lb) throws IOException
        {
            session.size++;

            if (lb.offset == lb.buffer.length)
            {
                // flush and reset
                lb.offset = session.flush(lb.buffer, lb.start, lb.offset - lb.start);
            }
            lb.buffer[lb.offset++] = value;

            return lb;
        }
The flexible output for outputs that use {@link WriteSession}.

@author David Yu
@created Sep 20, 2010
protostuff-api/src/main/java/io/protostuff/WriteSink.java