// CopyCallFrame copies the relay.CallFrame and returns a FakeCallFrame with
// corresponding values
CopyCallFrame copies the relay.CallFrame and returns a FakeCallFrame with
corresponding values
// CopyCallFrame copies the relay . CallFrame and returns a FakeCallFrame with // corresponding values
func CopyCallFrame(f relay.CallFrame) *FakeCallFrame {
	endOffset, hasMore := f.Arg2EndOffset()
	copyIterator, err := copyThriftArg2KVIterator(f)
	return &FakeCallFrame{
		TTLF:               f.TTL(),
		ServiceF:           string(f.Service()),
		MethodF:            string(f.Method()),
		CallerF:            string(f.Caller()),
		RoutingKeyF:        string(f.RoutingKey()),
		RoutingDelegateF:   string(f.RoutingDelegate()),
		Arg2StartOffsetVal: f.Arg2StartOffset(),
		Arg2EndOffsetVal:   endOffset,
		IsArg2Fragmented:   hasMore,
		arg2KVIterator:     copyIterator,
		hasArg2KVIterator:  err,
	}
}
func CopyCallFrame ( f relay . CallFrame ) * FakeCallFrame { endOffset , hasMore := f . Arg2EndOffset ( ) copyIterator , err := copyThriftArg2KVIterator ( f ) return & FakeCallFrame { TTLF : f . TTL ( ) , ServiceF : string ( f . Service ( ) ) , MethodF : string ( f . Method ( ) ) , CallerF : string ( f . Caller ( ) ) , RoutingKeyF : string ( f . RoutingKey ( ) ) , RoutingDelegateF : string ( f . RoutingDelegate ( ) ) , Arg2StartOffsetVal : f . Arg2StartOffset ( ) , Arg2EndOffsetVal : endOffset , IsArg2Fragmented : hasMore , arg2KVIterator : copyIterator , hasArg2KVIterator : err , } }
CopyCallFrame copies the relay.CallFrame and returns a FakeCallFrame with
corresponding values
CopyCallFrame copies the relay . CallFrame and returns a FakeCallFrame with corresponding values