From: Robert Griesemer Date: Thu, 10 Nov 2022 23:28:03 +0000 (-0800) Subject: spec: document the new unsafe functions SliceData, String, and StringData X-Git-Tag: go1.20rc1~293 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c55d184151d2a1d313b96d8e835341cd1f0ec0c5;p=gostls13.git spec: document the new unsafe functions SliceData, String, and StringData For #53003. Change-Id: If5d76c7b8dfcbcab919cad9c333c0225fc155859 Reviewed-on: https://go-review.googlesource.com/c/go/+/449537 Reviewed-by: Matthew Dempsky Reviewed-by: Ian Lance Taylor Run-TryBot: Robert Griesemer Auto-Submit: Robert Griesemer TryBot-Result: Gopher Robot Reviewed-by: Robert Griesemer --- diff --git a/doc/go_spec.html b/doc/go_spec.html index e55f34aa63..3dcab9c4a6 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -8006,6 +8006,9 @@ func Sizeof(variable ArbitraryType) uintptr type IntegerType int // shorthand for an integer type; it is not a real type func Add(ptr Pointer, len IntegerType) Pointer func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType +func SliceData(slice []ArbitraryType) *ArbitraryType +func String(ptr *byte, len IntegerType) string +func StringData(str string) *byte