本文整理汇总了C#中Db4objects.Db4o.Internal.Marshall.QueryingReadContext.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# QueryingReadContext.ReadInt方法的具体用法?C# QueryingReadContext.ReadInt怎么用?C# QueryingReadContext.ReadInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Internal.Marshall.QueryingReadContext
的用法示例。
在下文中一共展示了QueryingReadContext.ReadInt方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadCandidateHandler
public virtual ITypeHandler4 ReadCandidateHandler(QueryingReadContext context)
{
var payLoadOffSet = context.ReadInt();
if (payLoadOffSet == 0)
{
return null;
}
context.Seek(payLoadOffSet);
var classMetadataID = context.ReadInt();
var classMetadata = context.Container().ClassMetadataForID(classMetadataID
);
if (classMetadata == null)
{
return null;
}
return classMetadata.ReadCandidateHandler(context);
}
示例2: CollectIDs
public virtual void CollectIDs(QueryingReadContext context)
{
var elementHandler = ReadElementTypeHandler(context, context);
var elementCount = context.ReadInt();
for (var i = 0; i < elementCount; i++)
{
context.ReadId(elementHandler);
}
}
示例3: CollectIDs
public virtual void CollectIDs(QueryingReadContext context)
{
var handlers = ReadKeyValueTypeHandlers(context, context);
var elementCount = context.ReadInt();
for (var i = 0; i < elementCount; i++)
{
context.ReadId(handlers._keyHandler);
context.SkipId(handlers._valueHandler);
}
}
示例4: ReadCandidateHandler
public override ITypeHandler4 ReadCandidateHandler(QueryingReadContext context)
{
int id = 0;
int offset = context.Offset();
try
{
id = context.ReadInt();
}
catch (Exception)
{
}
context.Seek(offset);
if (id != 0)
{
StatefulBuffer reader = context.Container().ReadStatefulBufferById(context.Transaction
(), id);
if (reader != null)
{
ObjectHeader oh = new ObjectHeader(context.Container(), reader);
try
{
if (oh.ClassMetadata() != null)
{
context.Buffer(reader);
return oh.ClassMetadata().SeekCandidateHandler(context);
}
}
catch (Exception e)
{
}
}
}
// TODO: Check Exception Types
// Errors typically occur, if classes don't match
return null;
}
示例5: CollectIDs
// throw new IllegalStateException();
public virtual void CollectIDs(QueryingReadContext readContext)
{
IInternalReadContext context = (IInternalReadContext)readContext;
int payloadOffset = context.ReadInt();
if (payloadOffset == 0)
{
return;
}
int savedOffSet = context.Offset();
try
{
ITypeHandler4 typeHandler = ReadTypeHandler(context, payloadOffset);
if (typeHandler == null)
{
return;
}
SeekSecondaryOffset(context, typeHandler);
if (IsPlainObject(typeHandler))
{
readContext.Collector().AddId(readContext.ReadInt());
return;
}
CollectIdContext collectIdContext = new _CollectIdContext_203(readContext, readContext
.Transaction(), readContext.Collector(), null, readContext.Buffer());
Handlers4.CollectIdsInternal(collectIdContext, context.Container().Handlers.CorrectHandlerVersion
(typeHandler, context.HandlerVersion()), 0, false);
}
finally
{
context.Seek(savedOffSet);
}
}
示例6: CollectIDs
// TODO Auto-generated method stub
public virtual void CollectIDs(QueryingReadContext context)
{
int id = context.ReadInt();
BTree bTree = NewBTree(context, id);
bTree.TraverseKeys(context.Transaction(), new _IVisitor4_83(context));
}