256
|
1 |
// Copyright 2019 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 |
|
260
|
5 |
//go:build !purego && !appengine |
256
|
6 |
// +build !purego,!appengine |
|
7 |
|
|
8 |
package impl |
|
9 |
|
|
10 |
// When using unsafe pointers, we can just treat enum values as int32s. |
|
11 |
|
|
12 |
var ( |
|
13 |
coderEnumNoZero = coderInt32NoZero |
|
14 |
coderEnum = coderInt32 |
|
15 |
coderEnumPtr = coderInt32Ptr |
|
16 |
coderEnumSlice = coderInt32Slice |
|
17 |
coderEnumPackedSlice = coderInt32PackedSlice |
|
18 |
) |