This commit is contained in:
@@ -54,10 +54,14 @@ public final class BsonReader implements Reader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final void setBytes(byte[] bytes, int start, int len) {
|
public final void setBytes(byte[] bytes, int start, int len) {
|
||||||
|
if (bytes == null) {
|
||||||
|
this.position = 0;
|
||||||
|
} else {
|
||||||
this.content = bytes;
|
this.content = bytes;
|
||||||
this.position = start - 1;
|
this.position = start - 1;
|
||||||
//this.limit = start + len - 1;
|
//this.limit = start + len - 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected boolean recycle() {
|
protected boolean recycle() {
|
||||||
this.position = -1;
|
this.position = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user