示例#1
0
    private byte[] CreateBuffer()
    {
        FlatBufferBuilder builder = new FlatBufferBuilder(1024);

        int          intValue    = 5;
        StringOffset stringValue = builder.CreateString("someName");

        Offset <SimpleType> obj = SimpleType.CreateSimpleType(builder, intValue, stringValue);

        builder.Finish(obj.Value);
        byte[] data = builder.SizedByteArray();
        return(data);
    }
示例#2
0
 public object Deserialize()
 {
     return(SimpleType.CreateSimpleType(System.Type.GetType(JmxTypeMapping.GetCLRTypeName(Type), true)));
 }
示例#3
0
 public OpenType MapType(Type plainNetType, MapTypeDelegate mapNestedTypeCallback)
 {
     return(SimpleType.CreateSimpleType(plainNetType));
 }