Exemplo n.º 1
0
 protected void putObjectId(String name, ObjectId oid) {
   _put(OID, name);
   // according to spec, values should be stored big endian
   _buf.writeIntBE(oid._time());
   _buf.writeIntBE(oid._machine());
   _buf.writeIntBE(oid._inc());
 }
Exemplo n.º 2
0
  protected void putDBPointer(String name, String ns, ObjectId oid) {
    _put(REF, name);

    _putValueString(ns);
    _buf.writeInt(oid._time());
    _buf.writeInt(oid._machine());
    _buf.writeInt(oid._inc());
  }