private void ReadObjectNull(BinaryHeaderEnum binaryHeaderEnum) { if (this.objectNull == null) { this.objectNull = new ObjectNull(); } this.objectNull.Read(this, binaryHeaderEnum); this.objectNull.Dump(); ObjectProgress objectProgress = (ObjectProgress)this.stack.Peek(); this.prs.Init(); this.prs.PRparseTypeEnum = InternalParseTypeE.Member; this.prs.PRmemberValueEnum = InternalMemberValueE.Null; if (objectProgress.objectTypeEnum == InternalObjectTypeE.Object) { this.prs.PRmemberTypeEnum = InternalMemberTypeE.Field; this.prs.PRname = objectProgress.name; this.prs.PRdtType = objectProgress.dtType; } else { this.prs.PRmemberTypeEnum = InternalMemberTypeE.Item; this.prs.PRnullCount = this.objectNull.nullCount; objectProgress.ArrayCountIncrement(this.objectNull.nullCount - 1); } this.objectReader.Parse(this.prs); }
private void ReadObjectNull(BinaryHeaderEnum binaryHeaderEnum) { if (_objectNull == null) { _objectNull = new ObjectNull(); } _objectNull.Read(this, binaryHeaderEnum); ObjectProgress objectOp = (ObjectProgress)_stack.Peek(); PRs.Init(); PRs._parseTypeEnum = InternalParseTypeE.Member; PRs._memberValueEnum = InternalMemberValueE.Null; if (objectOp._objectTypeEnum == InternalObjectTypeE.Object) { PRs._memberTypeEnum = InternalMemberTypeE.Field; PRs._name = objectOp._name; PRs._dtType = objectOp._dtType; } else { PRs._memberTypeEnum = InternalMemberTypeE.Item; PRs._consecutiveNullArrayEntryCount = _objectNull._nullCount; //only one null position has been incremented by GetNext //The position needs to be reset for the rest of the nulls objectOp.ArrayCountIncrement(_objectNull._nullCount - 1); } _objectReader.Parse(PRs); }
private void ReadObjectNull(BinaryHeaderEnum binaryHeaderEnum) { SerTrace.Log(this, "ReadObjectNull "); if (objectNull == null) { objectNull = new ObjectNull(); } objectNull.Read(this, binaryHeaderEnum); objectNull.Dump(); ObjectProgress objectOp = (ObjectProgress)stack.Peek(); prs.Init(); prs.PRparseTypeEnum = InternalParseTypeE.Member; prs.PRmemberValueEnum = InternalMemberValueE.Null; if (objectOp.objectTypeEnum == InternalObjectTypeE.Object) { prs.PRmemberTypeEnum = InternalMemberTypeE.Field; prs.PRname = objectOp.name; prs.PRdtType = objectOp.dtType; } else { prs.PRmemberTypeEnum = InternalMemberTypeE.Item; prs.PRnullCount = objectNull.nullCount; //only one null position has been incremented by GetNext //The position needs to be reset for the rest of the nulls objectOp.ArrayCountIncrement(objectNull.nullCount - 1); } objectReader.Parse(prs); }