本文整理汇总了C#中ByteArrayBuffer.ReadByte方法的典型用法代码示例。如果您正苦于以下问题:C# ByteArrayBuffer.ReadByte方法的具体用法?C# ByteArrayBuffer.ReadByte怎么用?C# ByteArrayBuffer.ReadByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ByteArrayBuffer
的用法示例。
在下文中一共展示了ByteArrayBuffer.ReadByte方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read1
internal override object Read1(ByteArrayBuffer a_bytes)
{
var b1 = a_bytes.ReadByte();
var b2 = a_bytes.ReadByte();
var ret = (char) ((b1 & unchecked(0xff)) | ((b2 & unchecked(0xff))
<< 8));
return ret;
}
示例2: ReadThis
public virtual void ReadThis(ByteArrayBuffer buffer)
{
SystemData().ConverterVersion(buffer.ReadInt());
SystemData().FreespaceSystem(buffer.ReadByte());
buffer.ReadInt();
// was BTreeFreespaceId, converted to slot, can no longer be used
SystemData().IdentityId(buffer.ReadInt());
SystemData().LastTimeStampID(buffer.ReadLong());
SystemData().UuidIndexId(buffer.ReadInt());
}
示例3: Read1
internal override object Read1(ByteArrayBuffer a_bytes)
{
var ret = a_bytes.ReadByte();
if (ret == True)
{
return true;
}
if (ret == False)
{
return false;
}
return null;
}
示例4: ReadSpec
protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
stream, ByteArrayBuffer reader)
{
var name = StringHandler.ReadStringNoDebug(stream.Transaction.Context(), reader
);
if (!aspectType.IsFieldMetadata())
{
return new RawFieldSpec(aspectType, name);
}
if (name.IndexOf(Const4.VirtualFieldPrefix) == 0)
{
if (stream._handlers.VirtualFieldByName(name) != null)
{
return new RawFieldSpec(aspectType, name);
}
}
var fieldTypeID = reader.ReadInt();
var attribs = reader.ReadByte();
return new RawFieldSpec(aspectType, name, fieldTypeID, attribs);
}
示例5: Read
protected override void Read(LocalObjectContainer container, ByteArrayBuffer reader
)
{
NewTimerFileLock(container);
OldEncryptionOff(container);
CheckThreadFileLock(container, reader);
reader.Seek(BlocksizeOffset);
container.BlockSizeReadFromFile(reader.ReadInt());
var systemData = container.SystemData();
systemData.ClassCollectionID(reader.ReadInt());
container.SystemData().IdSystemType(reader.ReadByte());
_variablePart = CreateVariablePart(container);
var variablePartAddress = reader.ReadInt();
var variablePartLength = reader.ReadInt();
_variablePart.Read(variablePartAddress, variablePartLength);
_transactionPointerAddress = reader.ReadInt();
if (_transactionPointerAddress != 0)
{
var buffer = new ByteArrayBuffer(TransactionPointerLength);
buffer.Read(container, _transactionPointerAddress, 0);
systemData.TransactionPointer1(buffer.ReadInt());
systemData.TransactionPointer2(buffer.ReadInt());
}
}
示例6: Read1
internal override object Read1(ByteArrayBuffer a_bytes)
{
var ret = a_bytes.ReadByte();
return ret;
}
示例7: ReadNodeHeader
private void ReadNodeHeader(ByteArrayBuffer reader)
{
_count = reader.ReadInt();
var leafByte = reader.ReadByte();
_isLeaf = (leafByte == 1);
_parentID = reader.ReadInt();
_previousID = reader.ReadInt();
_nextID = reader.ReadInt();
}
示例8: ReadBuffer
protected virtual void ReadBuffer(ByteArrayBuffer buffer, bool versionsAreConsistent
)
{
buffer.IncrementOffset(ChecksumLength);
var systemData = SystemData();
systemData.IdSystemSlot(ReadSlot(buffer, false));
systemData.InMemoryFreespaceSlot(ReadSlot(buffer, !versionsAreConsistent));
systemData.BTreeFreespaceId(buffer.ReadInt());
systemData.ConverterVersion(buffer.ReadInt());
systemData.UuidIndexId(buffer.ReadInt());
systemData.IdentityId(buffer.ReadInt());
systemData.LastTimeStampID(buffer.ReadLong());
systemData.FreespaceSystem(buffer.ReadByte());
}
示例9: SignatureMatches
protected virtual bool SignatureMatches(ByteArrayBuffer reader, byte[] signature,
byte version)
{
for (var i = 0; i < signature.Length; i++)
{
if (reader.ReadByte() != signature[i])
{
return false;
}
}
return reader.ReadByte() == version;
}
示例10: ReadSpec
protected override RawFieldSpec ReadSpec(AspectType aspectType, ObjectContainerBase
stream, ByteArrayBuffer reader)
{
return base.ReadSpec(AspectType.ForByte(reader.ReadByte()), stream, reader);
}