comments
This commit is contained in:
parent
7281895f10
commit
d40c31bb00
|
@ -8,8 +8,6 @@ module XGen
|
|||
module GridFS
|
||||
|
||||
# A chunk stores a portion of GridStore data.
|
||||
#
|
||||
# TODO: user-defined chunk size
|
||||
class Chunk
|
||||
|
||||
DEFAULT_CHUNK_SIZE = 1024 * 256
|
||||
|
|
|
@ -54,7 +54,7 @@ class BSON
|
|||
end
|
||||
else
|
||||
def self.to_utf8(str)
|
||||
str # TODO punt for now
|
||||
str # TODO Ruby 1.8 punt for now
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -117,7 +117,7 @@ class BSON
|
|||
when UNDEFINED
|
||||
serialize_undefined_element(@buf, k)
|
||||
when CODE_W_SCOPE
|
||||
# TODO
|
||||
# TODO CODE_W_SCOPE unimplemented; may be removed
|
||||
raise "unimplemented type #{type}"
|
||||
else
|
||||
raise "unhandled type #{type}"
|
||||
|
@ -177,7 +177,7 @@ class BSON
|
|||
key = deserialize_cstr(@buf)
|
||||
doc[key] = deserialize_binary_data(@buf)
|
||||
when CODE_W_SCOPE
|
||||
# TODO
|
||||
# TODO CODE_W_SCOPE unimplemented; may be removed
|
||||
raise "unimplemented type #{type}"
|
||||
when EOO
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue