Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for slicedata2 (0.14 sec)

  1. src/bytes/bytes_test.go

    		}
    
    		if input != nil && clone == nil {
    			t.Errorf("Clone(%#v) return value should not be equal to nil slice.", input)
    		}
    
    		if cap(input) != 0 && unsafe.SliceData(input) == unsafe.SliceData(clone) {
    			t.Errorf("Clone(%q) return value should not reference inputs backing memory.", input)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/syscall/syscall_windows.go

    			// (total of 6) and overestimate by 2 bytes for the pair,
    			// since the resulting rune only requires 4 bytes.
    			maxLen += 3
    		}
    	}
    	buf := decodeWTF16(s, make([]byte, 0, maxLen))
    	return unsafe.String(unsafe.SliceData(buf), len(buf))
    }
    
    // utf16PtrToString is like UTF16ToString, but takes *uint16
    // as a parameter instead of []uint16.
    func utf16PtrToString(p *uint16) string {
    	if p == nil {
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    		*ast.MapType, *ast.ChanType:
    
    		return true
    	}
    	return false
    }
    
    // isUnsafeData reports whether the expression is unsafe.StringData
    // or unsafe.SliceData. We can ignore these when checking for pointers
    // because they don't change whether or not their argument contains
    // any Go pointers. If onlyStringData is true we only check for StringData.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top