gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

codec_unsafe.go (518B)


      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 //go:build !purego && !appengine
      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 )