github.com/cloudwego/kitex@v0.9.0/pkg/remote/codec/thrift/thrift_others.go (about) 1 //go:build (!amd64 && !arm64) || windows || !go1.16 || go1.23 || disablefrugal 2 // +build !amd64,!arm64 windows !go1.16 go1.23 disablefrugal 3 4 /* 5 * Copyright 2021 CloudWeGo Authors 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20 package thrift 21 22 import ( 23 "github.com/cloudwego/kitex/pkg/remote" 24 ) 25 26 // hyperMarshalEnabled indicates that if there are high priority message codec for current platform. 27 func (c thriftCodec) hyperMarshalEnabled() bool { 28 return false 29 } 30 31 // hyperMarshalAvailable indicates that if high priority message codec is available. 32 func hyperMarshalAvailable(data interface{}) bool { 33 return false 34 } 35 36 // hyperMessageUnmarshalEnabled indicates that if there are high priority message codec for current platform. 37 func (c thriftCodec) hyperMessageUnmarshalEnabled() bool { 38 return false 39 } 40 41 // hyperMessageUnmarshalAvailable indicates that if high priority message codec is available. 42 func hyperMessageUnmarshalAvailable(data interface{}, payloadLen int) bool { 43 return false 44 } 45 46 func (c thriftCodec) hyperMarshal(out remote.ByteBuffer, methodName string, msgType remote.MessageType, seqID int32, data interface{}) error { 47 panic("unreachable code") 48 } 49 50 func (c thriftCodec) hyperMarshalBody(data interface{}) (buf []byte, err error) { 51 panic("unreachable code") 52 } 53 54 func (c thriftCodec) hyperMessageUnmarshal(buf []byte, data interface{}) error { 55 panic("unreachable code") 56 }