mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
* Update Codec.swift * Update Sources/NIO/Codec.swift Co-authored-by: Cory Benfield <lukasa@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
1 parent
6d05b4f64b
commit
7688cf712f
1 file changed
+3
-1
@@ -60,7 +60,9 @@ extension ByteToMessageDecoderError {
|
||||
///
|
||||
/// ### Implementing ByteToMessageDecoder
|
||||
///
|
||||
/// A type that implements `ByteToMessageDecoder` must implement two methods: `decode` and `decodeLast`.
|
||||
/// A type that implements `ByteToMessageDecoder` may implement two methods: decode and decodeLast. Implementations
|
||||
/// must implement decode: if they do not implement decodeLast, a default implementation will be used that
|
||||
/// simply calls decode.
|
||||
///
|
||||
/// `decode` is the main decoding method, and is the one that will be called most often. `decode` is invoked
|
||||
/// whenever data is received by the wrapping `ByteToMessageHandler`. It is invoked with a `ByteBuffer` containing
|
||||
|
||||
Reference in new issue
Block a user