[GODRIVER-165] Write full implementation of the bson.Element type Created: 14/Dec/17  Updated: 16/Jan/18  Resolved: 16/Jan/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.1

Type: New Feature Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before GODRIVER-181 Add depth tracking to bson.Document, ... Closed
Epic Link: GODRIVER New BSON

 Description   

Add tests for the bson.Element type and implement the WriteTo method.

Consolidate this type into ReaderElement and rename ReaderElement to Element.

For methods that return a document, add two methods, one that returns a Reader and another that returns a Document. Determine if getting a Document from a Reader's Element should panic or return a mutable Document from the underlying bytes.

Switch calls to binary.LittleEndian.Uint32 to use the readi32 method.


Generated at Thu Feb 08 08:33:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.