(s string)
| 27 | } |
| 28 | |
| 29 | func (p *liveCstrPool) cstr(s string) uintptr { |
| 30 | p.mu.Lock() |
| 31 | defer p.mu.Unlock() |
| 32 | b := append([]byte(s), 0) |
| 33 | p.bufs = append(p.bufs, b) |
| 34 | return uintptr(unsafe.Pointer(&b[0])) |
| 35 | } |
| 36 | |
| 37 | // liveStubs swaps every C entry point the live path touches and returns a |
| 38 | // restore func for AfterEach. |
no test coverage detected