David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 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 | |
| 5 | // +build !purego,!appengine |
| 6 | |
| 7 | package impl |
| 8 | |
| 9 | // When using unsafe pointers, we can just treat enum values as int32s. |
| 10 | |
| 11 | var ( |
| 12 | coderEnumNoZero = coderInt32NoZero |
| 13 | coderEnum = coderInt32 |
| 14 | coderEnumPtr = coderInt32Ptr |
| 15 | coderEnumSlice = coderInt32Slice |
| 16 | coderEnumPackedSlice = coderInt32PackedSlice |
| 17 | ) |