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