@Override
                public void writeTo(Output output, T message)
                        throws IOException
                {
                    if (primitive)
                        output.writeUInt32(number, us.getChar(message, offset),
                                false);
                    else
                    {
                        Character value = (Character) us.getObject(message,
                                offset);
                        if (value != null)
                            output.writeUInt32(number, value.charValue(), false);
                    }
                }
Field factory via sun.misc.Unsafe.

@author David Yu
@created Jul 7, 2011
protostuff-runtime/src/main/java/io/protostuff/runtime/RuntimeUnsafeFieldFactory.java