Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sizeof (0.34 sec)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    		if text == nil {
    			t.Errorf("%s: instruction outside TEXT", p)
    		}
    		size := int64(len(text.P)) - p.Pc
    		if p.Link != nil {
    			size = p.Link.Pc - p.Pc
    		} else if p.Isize != 0 {
    			size = int64(p.Isize)
    		}
    		var code []byte
    		if p.Pc < int64(len(text.P)) {
    			code = text.P[p.Pc:]
    			if size < int64(len(code)) {
    				code = code[:size]
    			}
    		}
    		codeHex := fmt.Sprintf("%x", code)
    		if codeHex == "" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top