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


C# IReadBuffer.ReadInt方法代码示例

本文整理汇总了C#中IReadBuffer.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# IReadBuffer.ReadInt方法的具体用法?C# IReadBuffer.ReadInt怎么用?C# IReadBuffer.ReadInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IReadBuffer的用法示例。


在下文中一共展示了IReadBuffer.ReadInt方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SeekSecondaryOffset

		protected override void SeekSecondaryOffset(IReadBuffer buffer, ITypeHandler4 typeHandler
			)
		{
			if (Handlers4.HandlesPrimitiveArray(typeHandler))
			{
				buffer.Seek(buffer.ReadInt());
			}
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:OpenTypeHandler2.cs

示例2: ReadLengthAndString

		public virtual string ReadLengthAndString(IReadBuffer buffer)
		{
			int length = buffer.ReadInt();
			if (length == 0)
			{
				return string.Empty;
			}
			return Read(buffer, length);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:9,代码来源:LatinStringIO.cs

示例3: ReadDimensions

 private void ReadDimensions(ArrayInfo info, IReadBuffer buffer, int dimensionCount
     )
 {
     var dim = new int[dimensionCount];
     for (var i = 0; i < dim.Length; i++)
     {
         dim[i] = buffer.ReadInt();
     }
     ((MultidimensionalArrayInfo) info).Dimensions(dim);
     info.ElementCount(ElementCount(dim));
 }
开发者ID:masroore,项目名称:db4o,代码行数:11,代码来源:MultidimensionalArrayHandler.cs

示例4: DoWithSlotIndirection

		public virtual object DoWithSlotIndirection(IReadBuffer buffer, IClosure4 closure
			)
		{
			int payLoadOffset = buffer.ReadInt();
			buffer.ReadInt();
			// length, not used
			int savedOffset = buffer.Offset();
			object res = null;
			if (payLoadOffset != 0)
			{
				buffer.Seek(payLoadOffset);
				res = closure.Run();
			}
			buffer.Seek(savedOffset);
			return res;
		}
开发者ID:erdincay,项目名称:db4o,代码行数:16,代码来源:SlotFormat.cs

示例5: ReadElementTypeHandler

        private static ITypeHandler4 ReadElementTypeHandler(IReadBuffer buffer, IContext context)
        {
            int elementHandlerId = buffer.ReadInt();
            if (elementHandlerId == 0) return OpenTypeHandlerFrom(context);

            ITypeHandler4 elementHandler = Container(context).TypeHandlerForClassMetadataID(elementHandlerId);
            return elementHandler ?? OpenTypeHandlerFrom(context);
        }
开发者ID:Galigator,项目名称:db4o,代码行数:8,代码来源:SystemArrayTypeHandler.cs

示例6: ReadDimensions

		protected virtual void ReadDimensions(ArrayInfo info, IReadBuffer buffer)
		{
			info.ElementCount(buffer.ReadInt());
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:4,代码来源:ArrayHandler.cs

示例7: ReadInfo

		protected virtual void ReadInfo(Transaction trans, IReadBuffer buffer, ArrayInfo 
			info)
		{
			int classID = buffer.ReadInt();
			if (IsPreVersion0Format(classID))
			{
				throw new UnsupportedOldFormatException();
			}
			else
			{
				_versionHelper.ReadTypeInfo(trans, buffer, info, classID);
				ReflectClassFromElementsEntry(Container(trans), info, classID);
				ReadDimensions(info, buffer);
			}
			if (Debug4.ExceedsMaximumArrayEntries(info.ElementCount(), _usePrimitiveClassReflector
				))
			{
				info.ElementCount(0);
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:20,代码来源:ArrayHandler.cs

示例8: ReadKeyValueTypeHandlers

		private KeyValueHandlerPair ReadKeyValueTypeHandlers(IReadBuffer buffer, IContext
			 context)
		{
			buffer.ReadInt();
			buffer.ReadInt();
			ITypeHandler4 untypedHandler = (ITypeHandler4)Container(context).Handlers.OpenTypeHandler
				();
			return new KeyValueHandlerPair(untypedHandler, untypedHandler);
		}
开发者ID:erdincay,项目名称:db4o,代码行数:9,代码来源:MapTypeHandler.cs

示例9: ReadAspectCount

 public int ReadAspectCount(IReadBuffer buffer)
 {
     var count = buffer.ReadInt();
     if (count > _aspects.Length)
     {
         return _aspects.Length;
     }
     return count;
 }
开发者ID:masroore,项目名称:db4o,代码行数:9,代码来源:ClassMetadata.cs

示例10: ReadElementTypeHandler

		private ITypeHandler4 ReadElementTypeHandler(IReadBuffer buffer, IContext context
			)
		{
			buffer.ReadInt();
			return (ITypeHandler4)Container(context).Handlers.OpenTypeHandler();
		}
开发者ID:erdincay,项目名称:db4o,代码行数:6,代码来源:CollectionTypeHandler.cs

示例11: SkipData

 private static void SkipData(IReadBuffer deleteContext)
 {
     int numBytes = deleteContext.ReadInt();
     deleteContext.Seek(deleteContext.Offset() + numBytes);
 }
开发者ID:Galigator,项目名称:db4o,代码行数:5,代码来源:StringBuilderHandler.cs


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