本文整理汇总了C#中IDataReader.ReadUInt方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.ReadUInt方法的具体用法?C# IDataReader.ReadUInt怎么用?C# IDataReader.ReadUInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataReader
的用法示例。
在下文中一共展示了IDataReader.ReadUInt方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(IDataReader reader)
{
msgId = reader.ReadShort();
if (msgId < 0)
throw new Exception("Forbidden value on msgId = " + msgId + ", it doesn't respect the following condition : msgId < 0");
timeStamp = reader.ReadUInt();
if (timeStamp < 0 || timeStamp > 4294967295)
throw new Exception("Forbidden value on timeStamp = " + timeStamp + ", it doesn't respect the following condition : timeStamp < 0 || timeStamp > 4294967295");
owner = reader.ReadUTF();
objectGenericId = reader.ReadUInt();
if (objectGenericId < 0 || objectGenericId > 4294967295)
throw new Exception("Forbidden value on objectGenericId = " + objectGenericId + ", it doesn't respect the following condition : objectGenericId < 0 || objectGenericId > 4294967295");
}
示例2: Deserialize
public override void Deserialize(IDataReader reader)
{
enable = reader.ReadBoolean();
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
}
示例3: Deserialize
public override void Deserialize(IDataReader reader)
{
base.Deserialize(reader);
breed = reader.ReadSByte();
sex = reader.ReadBoolean();
rank = reader.ReadShort();
if (rank < 0)
throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0");
givenExperience = reader.ReadDouble();
if (givenExperience < 0)
throw new Exception("Forbidden value on givenExperience = " + givenExperience + ", it doesn't respect the following condition : givenExperience < 0");
experienceGivenPercent = reader.ReadSByte();
if (experienceGivenPercent < 0 || experienceGivenPercent > 100)
throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100");
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
connected = reader.ReadSByte();
if (connected < 0)
throw new Exception("Forbidden value on connected = " + connected + ", it doesn't respect the following condition : connected < 0");
alignmentSide = reader.ReadSByte();
hoursSinceLastConnection = reader.ReadUShort();
if (hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535)
throw new Exception("Forbidden value on hoursSinceLastConnection = " + hoursSinceLastConnection + ", it doesn't respect the following condition : hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535");
moodSmileyId = reader.ReadSByte();
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
}
示例4: Deserialize
public override void Deserialize(IDataReader reader)
{
reportedId = reader.ReadUInt();
if (reportedId < 0 || reportedId > 4294967295)
throw new Exception("Forbidden value on reportedId = " + reportedId + ", it doesn't respect the following condition : reportedId < 0 || reportedId > 4294967295");
reason = reader.ReadSByte();
if (reason < 0)
throw new Exception("Forbidden value on reason = " + reason + ", it doesn't respect the following condition : reason < 0");
}
示例5: Deserialize
public override void Deserialize(IDataReader reader)
{
guildInfo = new Types.GuildInformations();
guildInfo.Deserialize(reader);
memberRights = reader.ReadUInt();
if (memberRights < 0 || memberRights > 4294967295)
throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0 || memberRights > 4294967295");
enabled = reader.ReadBoolean();
}
示例6: Deserialize
public override void Deserialize(IDataReader reader)
{
houseId = reader.ReadShort();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
guildInfo = new Types.GuildInformations();
guildInfo.Deserialize(reader);
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
}
示例7: Deserialize
public override void Deserialize(IDataReader reader)
{
msgId = reader.ReadShort();
if (msgId < 0)
throw new Exception("Forbidden value on msgId = " + msgId + ", it doesn't respect the following condition : msgId < 0");
var limit = reader.ReadUShort();
parameters = new string[limit];
for (int i = 0; i < limit; i++)
{
parameters[i] = reader.ReadUTF();
}
livingObject = reader.ReadUInt();
if (livingObject < 0 || livingObject > 4294967295)
throw new Exception("Forbidden value on livingObject = " + livingObject + ", it doesn't respect the following condition : livingObject < 0 || livingObject > 4294967295");
}
示例8: Deserialize
public override void Deserialize(IDataReader reader)
{
memberId = reader.ReadInt();
if (memberId < 0)
throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0");
rank = reader.ReadShort();
if (rank < 0)
throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0");
experienceGivenPercent = reader.ReadSByte();
if (experienceGivenPercent < 0 || experienceGivenPercent > 100)
throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100");
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
}
示例9: Deserialize
public virtual void Deserialize(IDataReader reader)
{
houseId = reader.ReadInt();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
modelId = reader.ReadShort();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
ownerId = reader.ReadInt();
ownerName = reader.ReadUTF();
worldX = reader.ReadShort();
if (worldX < -255 || worldX > 255)
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
worldY = reader.ReadShort();
if (worldY < -255 || worldY > 255)
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
price = reader.ReadUInt();
if (price < 0 || price > 4294967295)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0 || price > 4294967295");
isLocked = reader.ReadBoolean();
}
示例10: Deserialize
public virtual void Deserialize(IDataReader reader)
{
houseId = reader.ReadInt();
if ( houseId < 0 )
{
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
}
modelId = reader.ReadInt();
if ( modelId < 0 )
{
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
}
ownerName = reader.ReadUTF();
worldX = reader.ReadShort();
if ( worldX < -255 || worldX > 255 )
{
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
}
worldY = reader.ReadShort();
if ( worldY < -255 || worldY > 255 )
{
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
}
int limit = reader.ReadUShort();
skillListIds = new int[limit];
for (int i = 0; i < limit; i++)
{
(skillListIds as int[])[i] = reader.ReadInt();
}
guildshareParams = reader.ReadUInt();
if ( guildshareParams < 0 || guildshareParams > 4294967295 )
{
throw new Exception("Forbidden value on guildshareParams = " + guildshareParams + ", it doesn't respect the following condition : guildshareParams < 0 || guildshareParams > 4294967295");
}
}
示例11: ReadFromStream
public static new DlmGraphicalElement ReadFromStream(DlmCell cell, IDataReader reader)
{
var element = new DlmGraphicalElement(cell);
element.m_elementId = reader.ReadUInt();
element.m_hue = new ColorMultiplicator(reader.ReadByte(), reader.ReadByte(), reader.ReadByte(), false);
element.m_shadow = new ColorMultiplicator(reader.ReadByte(), reader.ReadByte(), reader.ReadByte(), false);
if (cell.Layer.Map.Version <= 4)
{
element.m_offset.X = reader.ReadByte();
element.m_offset.Y = reader.ReadByte();
element.m_pixelOffset.X = (int) (element.m_offset.X * CELL_HALF_WIDTH);
element.m_pixelOffset.Y = (int) (element.m_offset.Y * CELL_HALF_HEIGHT);
}
else
{
element.m_pixelOffset.X = reader.ReadShort();
element.m_pixelOffset.Y = reader.ReadShort();
element.m_offset.X = (int)( element.m_pixelOffset.X / CELL_HALF_WIDTH );
element.m_offset.Y = (int)( element.m_pixelOffset.Y / CELL_HALF_HEIGHT );
}
element.m_altitude = reader.ReadByte();
element.m_identifier = reader.ReadUInt();
// we don't care
//element.CalculateFinalTeint();
return element;
}