// PeekData reads len(data) bytes at 'addr' in the child and places the bytes
// in the data slice. It returns the amount of data read or an error.
PeekData reads len(data) bytes at 'addr' in the child and places the bytes
in the data slice. It returns the amount of data read or an error.
// PeekData reads len ( data ) bytes at ' addr ' in the child and places the bytes // in the data slice . It returns the amount of data read or an error .
func (t *Tracer) PeekData(addr uintptr, data []byte) (int, error) {
	var nread int
	for nread < len(data) {
		n, err := unix.PtracePeekData(t.pid, addr, data[nread:])
		if n == 0 || err != nil {
			return nread, err
		}
		nread += n
	}
	return nread, nil
}
func ( t * Tracer ) PeekData ( addr uintptr , data [ ] byte ) ( int , error ) { var nread int for nread < len ( data ) { n , err := unix . PtracePeekData ( t . pid , addr , data [ nread : ] ) if n == 0 || err != nil { return nread , err } nread += n } return nread , nil }
PeekData reads len(data) bytes at 'addr' in the child and places the bytes
in the data slice.
PeekData reads len ( data ) bytes at ' addr ' in the child and places the bytes in the data slice .