static void writeFixed2ByteInt(final int value, final byte[] buffer, int offset,
            final boolean littleEndian)
    {
        if (littleEndian)
        {
            buffer[offset++] = (byte) value;
            buffer[offset] = (byte) ((value >>> 8) & 0xFF);
        }
        else
        {
            buffer[offset++] = (byte) ((value >>> 8) & 0xFF);
            buffer[offset] = (byte) value;
        }
    }
Writes the ascii bytes from the string into the {@link LinkedBuffer}. It is the responsibility of the caller to
know in advance that the string is 100% ascii. E.g if you convert a double/float to a string, you are sure it
only contains ascii chars.
protostuff-api/src/main/java/io/protostuff/StringSerializer.java