protected override void ReadValueFromStream(Stream stream) { var pattern = BinUtils.ReadCString(stream); var options = BinUtils.ReadCString(stream).ToBSONOptions(); Value = new BSONRegularExpression(pattern, options); }
protected override void ReadValueFromStream(Stream stream) { BinUtils.ReadInt32(stream); // fullLength var length = BinUtils.ReadInt32(stream); var code = BinUtils.ReadCString(stream, length); var document = new BSONDocument(stream); Value = new BSONCodeWithScope(code, document); }
protected BSONElement(Stream stream) { if (stream == null) { throw new BSONException(StringConsts.ARGUMENT_ERROR + "BSONElement.ctor(stream==null)"); } m_Name = BinUtils.ReadCString(stream); ReadValueFromStream(stream); }
protected override void ReadValueFromStream(Stream stream) { var length = BinUtils.ReadInt32(stream); Value = BinUtils.ReadCString(stream, length); }