mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 12:43:17 +00:00
Working
This commit is contained in:
@@ -169,18 +169,29 @@ public static class DataDeserializer
|
||||
}
|
||||
|
||||
|
||||
public static unsafe object Float128ParserAsync(byte[] data, uint offset, uint length, DistributedConnection connection, uint[] requestSequence)
|
||||
public static unsafe object Decimal128ParserAsync(byte[] data, uint offset, uint length, DistributedConnection connection, uint[] requestSequence)
|
||||
{
|
||||
fixed (byte* ptr = &data[offset])
|
||||
return *(decimal*)ptr;
|
||||
}
|
||||
|
||||
public static unsafe object Float128Parser(byte[] data, uint offset, uint length, Warehouse warehouse)
|
||||
public static unsafe object Decimal128Parser(byte[] data, uint offset, uint length, Warehouse warehouse)
|
||||
{
|
||||
fixed (byte* ptr = &data[offset])
|
||||
return *(decimal*)ptr;
|
||||
}
|
||||
|
||||
public static unsafe object UUIDParserAsync(byte[] data, uint offset, uint length, DistributedConnection connection, uint[] requestSequence)
|
||||
{
|
||||
return new UUID(data, offset);
|
||||
}
|
||||
|
||||
public static unsafe object UUIDParser(byte[] data, uint offset, uint length, Warehouse warehouse)
|
||||
{
|
||||
return new UUID(data, offset);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static unsafe object Int128ParserAsync(byte[] data, uint offset, uint length, DistributedConnection connection, uint[] requestSequence)
|
||||
{
|
||||
@@ -962,6 +973,8 @@ public static class DataDeserializer
|
||||
{
|
||||
var (cs, reply) = Codec.ParseAsync(data, offset, connection, requestSequence);
|
||||
|
||||
|
||||
|
||||
rt.Add(reply);
|
||||
|
||||
if (cs > 0)
|
||||
|
Reference in New Issue
Block a user