proxygen
wangle::SimpleDecode Class Reference
Inheritance diagram for wangle::SimpleDecode:
wangle::ByteToMessageDecoder< M > wangle::InboundHandler< folly::IOBufQueue &, M > wangle::HandlerBase< InboundHandlerContext< M > >

Public Member Functions

bool decode (Context *, IOBufQueue &buf, std::unique_ptr< IOBuf > &result, size_t &) override
 
- Public Member Functions inherited from wangle::ByteToMessageDecoder< M >
virtual bool decode (Context *ctx, folly::IOBufQueue &buf, M &result, size_t &)=0
 
void transportActive (Context *ctx) override
 
void transportInactive (Context *ctx) override
 
void read (Context *ctx, folly::IOBufQueue &q) override
 
- Public Member Functions inherited from wangle::InboundHandler< folly::IOBufQueue &, M >
 ~InboundHandler () override=default
 
virtual void read (Context *ctx, folly::IOBufQueue &msg)=0
 
virtual void readEOF (Context *ctx)
 
virtual void readException (Context *ctx, folly::exception_wrapper e)
 
virtual void transportActive (Context *ctx)
 
virtual void transportInactive (Context *ctx)
 
- Public Member Functions inherited from wangle::HandlerBase< InboundHandlerContext< M > >
virtual ~HandlerBase ()=default
 
virtual void attachPipeline (InboundHandlerContext< M > *)
 
virtual void detachPipeline (InboundHandlerContext< M > *)
 
InboundHandlerContext< M > * getContext ()
 

Additional Inherited Members

- Public Types inherited from wangle::ByteToMessageDecoder< M >
typedef InboundHandler< folly::IOBufQueue &, M >::Context Context
 
- Public Types inherited from wangle::InboundHandler< folly::IOBufQueue &, M >
typedef folly::IOBufQueuerin
 
typedef M rout
 
typedef folly::Unit win
 
typedef folly::Unit wout
 
typedef InboundHandlerContext< MContext
 
- Static Public Attributes inherited from wangle::InboundHandler< folly::IOBufQueue &, M >
static const HandlerDir dir
 

Detailed Description

Definition at line 34 of file ServiceTest.cpp.

Member Function Documentation

bool wangle::SimpleDecode::decode ( Context ,
IOBufQueue buf,
std::unique_ptr< IOBuf > &  result,
size_t &   
)
inlineoverride

Definition at line 36 of file ServiceTest.cpp.

References folly::IOBufQueue::move().

39  {
40  result = buf.move();
41  return result != nullptr;
42  }
std::unique_ptr< folly::IOBuf > move()
Definition: IOBufQueue.h:459

The documentation for this class was generated from the following file: