Source/NFX/Serialization/BSON/RowConverter.cs
/// <summary>
/// Encodes byte buffer purposed for id, using proper binary subtype
/// </summary>
Encodes byte buffer purposed for id, using proper binary subtype
Encodes byte buffer purposed for id using proper binary subtype
public static BSONElement ByteBufferID_CLRtoBSON(string name, byte[] buf)
        {
          if (buf == null) return new BSONNullElement(name);
          if (buf.Length > MAX_BYTE_BUFFER_SIZE)
            throw new BSONException(StringConsts.BUFFER_LONGER_THAN_ALLOWED_ERROR.Args(buf.Length, MAX_BYTE_BUFFER_SIZE));
          var bin = new BSONBinary(BSONBinaryType.UserDefined, buf);
          return new BSONBinaryElement(name, bin);
        }
public static BSONElement ByteBufferID_CLRtoBSON ( string name , byte [ ] buf ) { if ( buf == null ) return new BSONNullElement ( name ) ; if ( buf . Length > MAX_BYTE_BUFFER_SIZE ) throw new BSONException ( StringConsts . BUFFER_LONGER_THAN_ALLOWED_ERROR . Args ( buf . Length , MAX_BYTE_BUFFER_SIZE ) ) ; var bin = new BSONBinary ( BSONBinaryType . UserDefined , buf ) ; return new BSONBinaryElement ( name , bin ) ; }
Encodes byte buffer purposed for id, using proper binary subtype
Encodes byte buffer purposed for id using proper binary subtype
name
string
buf
byte[]