<dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt>
<dd>
- <p><!-- CL 401434 -->
- <a href="/pkg/reflect/#SliceHeader"><code>SliceHeader</code></a>
- and <a href="/pkg/reflect/#StringHeader"><code>StringHeader</code></a>
- are now deprecated, and their use should be avoided.
- </p>
<p><!-- CL 357331 -->
TODO: <a href="https://go.dev/cl/357331">https://go.dev/cl/357331</a>: allow Value.Bytes on addressable byte arrays
</p>
// Moreover, the Data field is not sufficient to guarantee the data
// it references will not be garbage collected, so programs must keep
// a separate, correctly typed pointer to the underlying data.
-//
-// Deprecated: this type should not be used, it exists only for
-// backward compatibility.
type StringHeader struct {
Data uintptr
Len int
// Moreover, the Data field is not sufficient to guarantee the data
// it references will not be garbage collected, so programs must keep
// a separate, correctly typed pointer to the underlying data.
-//
-// Deprecated: this type should not be used, it exists only for
-// backward compatibility.
type SliceHeader struct {
Data uintptr
Len int