public LinkedBuffer packRawStringHeader(int len, WriteSession session, LinkedBuffer lb)
            throws IOException
    {
        if (len < (1 << 5))
        {
            return sink.writeByte((byte) (FIXSTR_PREFIX | len), session, lb);
        }
        else if (str8FormatSupport && len < (1 << 8))
        {
            return writeByteAndByte(STR8, (byte) len, session, lb);
        }
        else if (len < (1 << 16))
        {
            return writeByteAndShort(STR16, (short) len, session, lb);
        }
        else
        {
            return writeByteAndInt(STR32, len, session, lb);
        }
    }
Simple wrapper around WriteSink with methods specific for MessagePacker

@author Alex Shvid
protostuff-msgpack/src/main/java/io/protostuff/MsgpackWriteSink.java