Esempio n. 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);
    }
Esempio n. 2
0
 public object Deserialize()
 {
     return(SimpleType.CreateSimpleType(System.Type.GetType(JmxTypeMapping.GetCLRTypeName(Type), true)));
 }
Esempio n. 3
0
 public OpenType MapType(Type plainNetType, MapTypeDelegate mapNestedTypeCallback)
 {
     return(SimpleType.CreateSimpleType(plainNetType));
 }