Handbook
Glossary
element-data-read ( type: integer -- object )
Vocabulary
bson
.
private
Inputs
type
an
integer
Outputs
object
an
object
Definition
USING:
assocs
bson
bson.constants
calendar
combinators
kernel
typed
;
IN:
bson.private
TYPED:
element-data-read
( type: integer -- object )
{
{
T_OID
[
bson-oid-read
]
}
{
T_String
[
read-int32
read-sized-string
]
}
{
T_Integer
[
read-int32
]
}
{
T_Integer64
[
read-longlong
]
}
{
T_Binary
[
bson-binary-read
]
}
{
T_Object
[
[
bson-object-data-read
drop
]
object-result
check-object
]
}
{
T_Array
[
[
bson-object-data-read
drop
]
object-result
values
]
}
{
T_Double
[
read-double
]
}
{
T_Boolean
[
read-byte
1
=
]
}
{
T_Date
[
read-longlong
millis>timestamp
]
}
{
T_Regexp
[
bson-regexp-read
]
}
{
T_Timestamp
[
read-timestamp
]
}
{
T_Code
[
read-int32
read-sized-string
]
}
{
T_ScopedCode
[
read-int32
drop
read-cstring
H{
}
clone
stream>assoc
<mongo-scoped-code>
]
}
{
T_NULL
[
f
]
}
[
"type unknown"
unknown-bson-type
]
}
case
;
inline
recursive