summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-09-10 11:38:51 -0400
committerDwight <dmerriman@gmail.com>2008-09-10 11:38:51 -0400
commit7f490a85c26817218d8a742d82ea12884982ffc1 (patch)
treecd6b465d08f21c56af5ee730a32dda9e53c5aefb
parent90d088511674f59227b964a91630008861fb1d02 (diff)
downloadmongo-7f490a85c26817218d8a742d82ea12884982ffc1.tar.gz
comments
-rw-r--r--db/jsobj.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/db/jsobj.h b/db/jsobj.h
index b7bb34c8f27..810442def45 100644
--- a/db/jsobj.h
+++ b/db/jsobj.h
@@ -64,15 +64,17 @@ struct OID {
EOO: nothing follows
Undefined: nothing follows
OID: an OID object
- Number: <double>
+ Number: <double>
String: <unsigned32 strsizewithnull><cstring>
- Date: <8bytes>
- Regex: <cstring regex><cstring options>
+ Date: <8bytes>
+ Regex: <cstring regex><cstring options>
Object: a nested object, leading with its entire size, which terminates with EOO.
Array: same as object
- DBRef: <strlen> <cstring ns> <oid>
- DBRef is a database reference: basically a collection name plus an Object ID
+ DBRef: <strlen> <cstring ns> <oid>
+ DBRef is a database reference: basically a collection name plus an Object ID
BinData: <int len> <byte subtype> <byte[len] data>
+ Code: a function (not a closure): same format as String.
+ Symbol: a language symbol (say a python symbol). same format as String.
*/
#pragma pack(pop)