MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / windowsString

Function windowsString

internal/pluginhost/loader_windows.go:379–392  ·  view source on GitHub ↗
(ptr uintptr)

Source from the content-addressed store, hash-verified

377}
378
379func windowsString(ptr uintptr) string {
380 if ptr == 0 {
381 return ""
382 }
383 bytes := make([]byte, 0)
384 for offset := uintptr(0); ; offset++ {
385 b := *(*byte)(unsafe.Pointer(ptr + offset))
386 if b == 0 {
387 break
388 }
389 bytes = append(bytes, b)
390 }
391 return string(bytes)
392}

Callers 1

windowsHostCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected