github.com/tailscale/sqlite@v0.0.0-20240515181108-c667cbe57c66/cgosqlite/stubs.go (about)

     1  package cgosqlite
     2  
     3  import _ "unsafe"
     4  
     5  // findnull exposes the runtime.findnull function to the cgosqlite package, this
     6  // is a wide instruction optimized page by page null byte search aka fast
     7  // strlen.
     8  //
     9  //go:linkname findnull runtime.findnull
    10  func findnull(*byte) int