MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / OrderMessage

Class OrderMessage

projects/CSharp/Proto/com.chronoxor.proto.cs:2977–3068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2975namespace com.chronoxor.proto {
2976
2977 public struct OrderMessage : IComparable, IComparable<OrderMessage>, IEquatable<OrderMessage>
2978 {
2979 public Order body;
2980 public Guid id => Guid.Empty;
2981
2982 public const long FBETypeConst = 1;
2983 #if UTF8JSON
2984 [IgnoreDataMember]
2985 #else
2986 [JsonIgnore]
2987 #endif
2988 public long FBEType => FBETypeConst;
2989
2990 public static OrderMessage Default => new OrderMessage
2991 {
2992 body = global::com.chronoxor.proto.Order.Default
2993 };
2994
2995 public OrderMessage(Order body)
2996 {
2997 this.body = body;
2998 }
2999
3000 public OrderMessage Clone()
3001 {
3002 // Serialize the struct to the FBE stream
3003 var writer = new com.chronoxor.proto.FBE.OrderMessageModel();
3004 writer.Serialize(this);
3005
3006 // Deserialize the struct from the FBE stream
3007 var reader = new com.chronoxor.proto.FBE.OrderMessageModel();
3008 reader.Attach(writer.Buffer);
3009 reader.Deserialize(out var result);
3010 return result;
3011 }
3012
3013 public int CompareTo(object other)
3014 {
3015 int result = 0;
3016 return result;
3017 }
3018
3019 public int CompareTo(OrderMessage other)
3020 {
3021 int result = 0;
3022 return result;
3023 }
3024
3025 public override bool Equals(object other)
3026 {
3027 if (!(other is OrderMessage))
3028 return false;
3029 return true;
3030 }
3031
3032 public bool Equals(OrderMessage other)
3033 {
3034 return true;

Callers

nothing calls this directly

Calls 1

EqualsMethod · 0.45

Tested by

no test coverage detected