blob: 85e074c977dc4523a5785cecd1de895cac5df498 [file] [log] [blame]
khenaidood948f772021-08-11 17:49:24 -04001// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build purego appengine
6
7package strs
8
9import pref "google.golang.org/protobuf/reflect/protoreflect"
10
11func UnsafeString(b []byte) string {
12 return string(b)
13}
14
15func UnsafeBytes(s string) []byte {
16 return []byte(s)
17}
18
19type Builder struct{}
20
21func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName {
22 return prefix.Append(name)
23}
24
25func (*Builder) MakeString(b []byte) string {
26 return string(b)
27}