2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-10-29 23:21:36 +00:00
This commit is contained in:
2025-10-11 13:00:11 +03:00
parent 4a3fa11b74
commit d4a371a8c9
2 changed files with 12 additions and 11 deletions

View File

@@ -332,8 +332,8 @@ public static class DataSerializer
if (previous != null && tdu.MatchType(previous.Value))
{
rt.Add((byte)TDUIdentifier.NotModified);
rt.AddRange(tdu.Composed.Clip(tdu.Composed[tdu.ContentOffset],
(uint)tdu.Composed.Length - tdu.Composed[tdu.ContentOffset]));
rt.AddRange(tdu.Composed.Clip(tdu.ContentOffset,
(uint)tdu.Composed.Length - tdu.ContentOffset));
}
else
{
@@ -459,7 +459,8 @@ public static class DataSerializer
foreach (var pt in template.Properties)
{
var propValue = pt.PropertyInfo.GetValue(record, null);
rt.AddRange(Codec.Compose(propValue, warehouse, connection));
var rr = Codec.Compose(propValue, warehouse, connection);
rt.AddRange(rr);
}
return new TDU(TDUIdentifier.Record, rt.ToArray(),