MCPcopy Create free account
hub / github.com/libgit2/git2go / getSizet

Function getSizet

settings.go:137–148  ·  view source on GitHub ↗
(opt C.int)

Source from the content-addressed store, hash-verified

135}
136
137func getSizet(opt C.int) (int, error) {
138 runtime.LockOSThread()
139 defer runtime.UnlockOSThread()
140
141 var val C.size_t
142 err := C._go_git_opts_get_size_t(opt, &val)
143 if err < 0 {
144 return 0, MakeGitError(err)
145 }
146
147 return int(val), nil
148}
149
150func getSizetSizet(opt C.int) (int, int, error) {
151 runtime.LockOSThread()

Callers 2

MwindowSizeFunction · 0.85
MwindowMappedLimitFunction · 0.85

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…