Download include/aws/core/utils/event/EventDecoderStream.h from Shenghong/dai_env: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/Shenghong/dai_env/resolve/main/include/aws/core/utils/event/EventDecoderStream.h
- Command line
-
hf download hf://Shenghong/dai_env/include/aws/core/utils/event/EventDecoderStream.h
-
curl -L -o EventDecoderStream.h https://huggingface.co/Shenghong/dai_env/resolve/main/include/aws/core/utils/event/EventDecoderStream.h
1.61 kB
| /** | |
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| * SPDX-License-Identifier: Apache-2.0. | |
| */ | |
| namespace Aws | |
| { | |
| namespace Utils | |
| { | |
| namespace Event | |
| { | |
| extern AWS_CORE_API const size_t DEFAULT_BUF_SIZE; | |
| /** | |
| * A buffered I/O stream that binary-decodes the bits written to it according to the AWS event-stream spec. | |
| * The decoding process will result in invoking callbacks on the handler assigned to the decoder parameter. | |
| */ | |
| class AWS_CORE_API EventDecoderStream : public Aws::IOStream | |
| { | |
| public: | |
| /** | |
| * Creates a stream for decoding events sent by the service. | |
| * @param decoder decodes the stream from server side, so as to invoke related callback functions. | |
| * @param eventStreamBufLength The length of the underlying buffer. | |
| */ | |
| EventDecoderStream(EventStreamDecoder& decoder, size_t bufferSize = DEFAULT_BUF_SIZE); | |
| private: | |
| EventDecoderStream(const EventDecoderStream&) = delete; | |
| EventDecoderStream(EventDecoderStream&&) = delete; | |
| EventDecoderStream& operator=(const EventDecoderStream&) = delete; | |
| EventDecoderStream& operator=(EventDecoderStream&&) = delete; | |
| EventStreamBuf m_eventStreamBuf; | |
| }; | |
| } | |
| } | |
| } | |