本文整理汇总了C#中Db4objects.Db4o.Internal.StatefulBuffer.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# StatefulBuffer.ReadInt方法的具体用法?C# StatefulBuffer.ReadInt怎么用?C# StatefulBuffer.ReadInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Internal.StatefulBuffer
的用法示例。
在下文中一共展示了StatefulBuffer.ReadInt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadIndexEntryFromObjectSlot
/// <summary>This readIndexEntry method reads from the parent slot.</summary>
/// <remarks>This readIndexEntry method reads from the parent slot.</remarks>
/// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
public virtual object ReadIndexEntryFromObjectSlot(MarshallerFamily mf, StatefulBuffer
buffer)
{
int payLoadOffSet = buffer.ReadInt();
int length = buffer.ReadInt();
if (payLoadOffSet == 0)
{
return null;
}
return buffer.ReadPayloadWriter(payLoadOffSet, length);
}
示例2: CompleteInterruptedTransaction
public override void CompleteInterruptedTransaction(int transactionId1, int transactionId2
)
{
if (transactionId1 <= 0 || transactionId1 != transactionId2)
{
return;
}
StatefulBuffer bytes = new StatefulBuffer(_container.SystemTransaction(), transactionId1
, Const4.IntLength);
bytes.Read();
int length = bytes.ReadInt();
if (length > 0)
{
bytes = new StatefulBuffer(_container.SystemTransaction(), transactionId1, length
);
bytes.Read();
bytes.IncrementOffset(Const4.IntLength);
ReadWriteSlotChanges(bytes);
}
_container.WriteTransactionPointer(0);
FlushDatabaseFile();
}
示例3: DeletePrimitiveEmbedded
// FIXME: This code has not been called in any test case when the
// new ArrayMarshaller was written.
// Apparently it only frees slots.
// For now the code simply returns without freeing.
/// <param name="classPrimitive"></param>
public void DeletePrimitiveEmbedded(StatefulBuffer buffer, PrimitiveTypeMetadata
classPrimitive)
{
buffer.ReadInt();
//int address = a_bytes.readInt();
buffer.ReadInt();
}
示例4: ReadIndexEntryFromObjectSlot
/// <exception cref="Db4objects.Db4o.CorruptionException"></exception>
/// <exception cref="Db4objects.Db4o.Ext.Db4oIOException"></exception>
public override object ReadIndexEntryFromObjectSlot(MarshallerFamily mf, StatefulBuffer
buffer)
{
return buffer.Container().ReadWriterByAddress(buffer.Transaction(), buffer.ReadInt
(), buffer.ReadInt());
}
示例5: ReadIndexEntryFromObjectSlot
public object ReadIndexEntryFromObjectSlot(MarshallerFamily mf, StatefulBuffer statefulBuffer)
{
return new IndexEntry(statefulBuffer.ReadInt(), statefulBuffer.ReadLong());
}