Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2838

Document ObjectID unsafe functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial - P5
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs, libbson
    • Labels:
      None

      Description

      There are multiple functions that operate on ObjectIDs in libbson that have unsafe variants:

      bson_oid_compare_unsafe
      bson_oid_equal_unsafe
      bson_oid_hash_unsafe
      bson_oid_copy_unsafe
      bson_oid_init_from_string_unsafe
      bson_oid_get_time_t_unsafe
      

      The unsafe variants omit null checks and are marked inline. They are undocumented.
      The "safe" variants just check that arguments are not null before calling the unsafe variant.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kevin.albertson Kevin Albertson
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: