Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62382

C.GoBytes() copy data from C to golang memory

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • None
    • storage-engine

    Description

      This posting says that C.GoBytes() can copy data. If so, we should use reflection instead.

      https://groups.google.com/g/golang-nuts/c/R67yt3Dz3tw?pli=1

      Also, https://pkg.go.dev/cmd/cgo says "A few special functions convert between Go and C types by making copies of the data". These special functions include C.GoBytes().

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            saptarshi.sen Saptarshi Sen
            jliang John Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty