encode注解类型处理

master
smartwyy 7 months ago
parent a125e541de
commit 2dd3d2d313

@ -110,8 +110,9 @@ public static class ModelConvert
if (start <= attribute.Start)
{
start = attribute.Start;
length = attribute.Length;
length = PropertyReadConstant.Byte == attribute.Type ? attribute.Length * 8 : attribute.Length;
}
dictionary.Add(attribute, field);
}
}
@ -127,7 +128,7 @@ public static class ModelConvert
PropertyInfo field = dictionary[attribute];
byte[] value = GetPropertyValue(t, field, attribute);
start = attribute.Start;
length = attribute.Length;
length = PropertyReadConstant.Byte == attribute.Type ? attribute.Length * 8 : attribute.Length;
for (int i = 0; i < length; i++)
{

Loading…
Cancel
Save