当前位置: 首页>>代码示例>>C#>>正文


C# StatefulBuffer.ReadInt方法代码示例

本文整理汇总了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);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:15,代码来源:StringHandler.cs

示例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();
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:22,代码来源:EmbeddedTransactionLogHandler.cs

示例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();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:12,代码来源:ArrayHandler.cs

示例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());
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:StringHandler0.cs

示例5: ReadIndexEntryFromObjectSlot

 	public object ReadIndexEntryFromObjectSlot(MarshallerFamily mf, StatefulBuffer statefulBuffer)
 	{
 		return new IndexEntry(statefulBuffer.ReadInt(), statefulBuffer.ReadLong());
 	}
开发者ID:erdincay,项目名称:db4o,代码行数:4,代码来源:EnumTypeHandler.cs


注:本文中的Db4objects.Db4o.Internal.StatefulBuffer.ReadInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。