Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for whySafe (0.17 sec)

  1. src/internal/reflectlite/type.go

    // If a name starts with "*", then the exported bit represents
    // whether the pointed to type is exported.
    type name struct {
    	bytes *byte
    }
    
    func (n name) data(off int, whySafe string) *byte {
    	return (*byte)(add(unsafe.Pointer(n.bytes), uintptr(off), whySafe))
    }
    
    func (n name) isExported() bool {
    	return (*n.bytes)&(1<<0) != 0
    }
    
    func (n name) hasTag() bool {
    	return (*n.bytes)&(1<<1) != 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/internal/abi/type.go

    	Bytes *byte
    }
    
    // DataChecked does pointer arithmetic on n's Bytes, and that arithmetic is asserted to
    // be safe for the reason in whySafe (which can appear in a backtrace, etc.)
    func (n Name) DataChecked(off int, whySafe string) *byte {
    	return (*byte)(addChecked(unsafe.Pointer(n.Bytes), uintptr(off), whySafe))
    }
    
    // Data does pointer arithmetic on n's Bytes, and that arithmetic is asserted to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. src/internal/reflectlite/value.go

    // it is invalid (but impossible to check here) to pass i >= len,
    // because then the result will point outside the array.
    // whySafe must explain why i < len. (Passing "i < len" is fine;
    // the benefit is to surface this assumption at the call site.)
    func arrayAt(p unsafe.Pointer, i int, eltSize uintptr, whySafe string) unsafe.Pointer {
    	return add(p, uintptr(i)*eltSize, "i < len")
    }
    
    func ifaceE2I(t *abi.Type, src any, dst unsafe.Pointer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top