Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnsafeBytes ¶
UnsafeBytes returns an unsafe bytes slice reference of s. The caller must treat returned slice as immutable.
WARNING: Use carefully. The returned result must not leak to the end user.
func UnsafeString ¶
UnsafeString returns an unsafe string reference of b. The caller must treat the input slice as immutable.
WARNING: Use carefully. The returned result must not leak to the end user unless the input slice is provably immutable.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds a set of strings with shared lifetime. This differs from strings.Builder, which is for building a single string.
func (*Builder) AppendFullName ¶
func (sb *Builder) AppendFullName(prefix protoreflect.FullName, name protoreflect.Name) protoreflect.FullName
AppendFullName is equivalent to protoreflect.FullName.Append, but optimized for large batches where each name has a shared lifetime.
func (*Builder) MakeString ¶
MakeString is equivalent to string(b), but optimized for large batches with a shared lifetime.