@Override
        public LinkedBuffer writeInt32LE(final int value,
                final WriteSession session, LinkedBuffer lb) throws IOException
        {
            session.size += 4;

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

            IntSerializer.writeInt32LE(value, lb.buffer, lb.offset);
            lb.offset += 4;

            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