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

Function getSizetSizet

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

Source from the content-addressed store, hash-verified

148}
149
150func getSizetSizet(opt C.int) (int, int, error) {
151 runtime.LockOSThread()
152 defer runtime.UnlockOSThread()
153
154 var val1, val2 C.size_t
155 err := C._go_git_opts_get_size_t_size_t(opt, &val1, &val2)
156 if err < 0 {
157 return 0, 0, MakeGitError(err)
158 }
159
160 return int(val1), int(val2), nil
161}
162
163func setSizet(opt C.int, val int) error {
164 runtime.LockOSThread()

Callers 1

CachedMemoryFunction · 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…