mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-17 01:12:51 +00:00
0946f97cdf
fixes golang/protobuf#1640 Change-Id: I0e8f2df27c6b86a6f7325524d788c852a9266f1f Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/606755 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Christian Höppner <hoeppi@google.com>
16 lines
455 B
Go
16 lines
455 B
Go
// Copyright 2019 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.
|
|
|
|
package impl
|
|
|
|
// When using unsafe pointers, we can just treat enum values as int32s.
|
|
|
|
var (
|
|
coderEnumNoZero = coderInt32NoZero
|
|
coderEnum = coderInt32
|
|
coderEnumPtr = coderInt32Ptr
|
|
coderEnumSlice = coderInt32Slice
|
|
coderEnumPackedSlice = coderInt32PackedSlice
|
|
)
|