From c55d184151d2a1d313b96d8e835341cd1f0ec0c5 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 10 Nov 2022 15:28:03 -0800 Subject: [PATCH] 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 --- doc/go_spec.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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