Sha256: 8035cef39b9c9a3721fc275b2dd48c483b98c2440c511a4a6ffaca43bd9d09c0

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build purego appengine

package strs

import pref "google.golang.org/protobuf/reflect/protoreflect"

func UnsafeString(b []byte) string {
	return string(b)
}

func UnsafeBytes(s string) []byte {
	return []byte(s)
}

type Builder struct{}

func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName {
	return prefix.Append(name)
}

func (*Builder) MakeString(b []byte) string {
	return string(b)
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
planetscale-0.3.1 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
planetscale-0.3.0 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
planetscale-0.2.1 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
planetscale-0.2.0 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go
planetscale-0.1.0 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go