File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
175
175
do fewer allocations.
176
176
</ p >
177
177
</ dd >
178
+ < dd >
179
+ < p > <!-- CL 350691 -->
180
+ The new
181
+ < a href ="/pkg/reflect/#Value.UnsafePointer "> < code > Value.UnsafePointer</ code > </ a >
182
+ method returns the Value's value as an < a href ="/pkg/unsafe/#Pointer "> < code > unsafe.Pointer</ code > </ a > .
183
+ This allows callers to migrate from < a href ="/pkg/reflect/#Value.UnsafeAddr "> < code > Value.UnsafeAddr</ code > </ a >
184
+ and < a href ="/pkg/reflect/#Value.Pointer "> < code > Value.Pointer</ code > </ a >
185
+ to eliminate the need to perform uintptr to unsafe.Pointer conversions at the callsite (as unsafe.Pointer rules require).
186
+ </ p >
187
+ </ dd >
178
188
</ dl > <!-- reflect -->
179
189
180
190
< dl id ="syscall "> < dt > < a href ="/pkg/syscall/ "> syscall</ a > </ dt >
You can’t perform that action at this time.
0 commit comments