public AttributeDefinitionEntry(string attributeName, AttributeType attributeType, AttributeDefinitionFlags flags, ulong minimumLength, ulong maximumLength) { AttributeName = attributeName; AttributeType = attributeType; Flags = flags; MinimumLength = minimumLength; MaximumLength = maximumLength; }
public AttributeDefinitionEntry(byte[] buffer, int offset) { AttributeName = ByteReader.ReadUTF16String(buffer, offset + 0x00, AttributeNameLength).TrimEnd(new char[] { '\0' }); AttributeType = (AttributeType)LittleEndianConverter.ToUInt32(buffer, offset + 0x80); DisplayRule = LittleEndianConverter.ToUInt32(buffer, offset + 0x84); CollationRule = (CollationRule)LittleEndianConverter.ToUInt32(buffer, offset + 0x88); Flags = (AttributeDefinitionFlags)LittleEndianConverter.ToUInt32(buffer, offset + 0x8C); MinimumLength = LittleEndianConverter.ToUInt64(buffer, offset + 0x90); MaximumLength = LittleEndianConverter.ToUInt64(buffer, offset + 0x98); }