equal
deleted
inserted
replaced
|
1 // 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 |
|
7 package strs |
|
8 |
|
9 import pref "google.golang.org/protobuf/reflect/protoreflect" |
|
10 |
|
11 func UnsafeString(b []byte) string { |
|
12 return string(b) |
|
13 } |
|
14 |
|
15 func UnsafeBytes(s string) []byte { |
|
16 return []byte(s) |
|
17 } |
|
18 |
|
19 type Builder struct{} |
|
20 |
|
21 func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { |
|
22 return prefix.Append(name) |
|
23 } |
|
24 |
|
25 func (*Builder) MakeString(b []byte) string { |
|
26 return string(b) |
|
27 } |