We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e98c07 commit eb02f87Copy full SHA for eb02f87
1 file changed
src/main/org/bson/LazyBSONObject.java
@@ -672,6 +672,10 @@ protected int getOffset(){
672
return _doc_start_offset;
673
}
674
675
+ protected byte[] getBytes() {
676
+ return _input.array();
677
+ }
678
+
679
@Override
680
public boolean equals(Object o) {
681
if (this == o) return true;
@@ -711,7 +715,7 @@ public String toString(){
711
715
protected final int _doc_start_offset;
712
716
713
717
/**
714
- * @deprecated This field is NOT a part of public API and will be dropped in 3.x versions.
718
+ * @deprecated Please use {@link #getBytes()} to access underlying bytes.
719
*/
720
@Deprecated
721
protected final BSONByteBuffer _input; // TODO - Guard this with synchronicity?
0 commit comments