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