@@ -94,7 +94,7 @@ impl<T> Pdu<T> {
94
94
}
95
95
96
96
impl < T : HeaderlessDecode > Pdu < T > {
97
- /// Decodes the instance from a buffer stripping it of its [`StreamHeader`] and [`TypeHeader`] .
97
+ /// Decodes the instance from a buffer stripping it of its headers .
98
98
pub fn decode ( src : & mut ReadCursor < ' _ > , charset : Option < CharacterSet > ) -> DecodeResult < Pdu < T > > {
99
99
// We expect `StreamHeader::decode`, `TypeHeader::decode`, and `T::decode` to each
100
100
// call `ensure_size!` to ensure that the buffer is large enough, so we can safely
@@ -146,11 +146,11 @@ pub trait Encode: ironrdp_core::Encode + Send + std::fmt::Debug {}
146
146
///
147
147
/// Implementers should typically implement this trait instead of [`Encode`].
148
148
pub trait HeaderlessEncode : Send + std:: fmt:: Debug {
149
- /// Encodes the instance into a buffer sans its [`StreamHeader`] and [`TypeHeader`] .
149
+ /// Encodes the instance into a buffer sans its headers .
150
150
fn encode ( & self , dst : & mut WriteCursor < ' _ > ) -> EncodeResult < ( ) > ;
151
151
/// Returns the name associated with this RPCE PDU.
152
152
fn name ( & self ) -> & ' static str ;
153
- /// Returns the size of the instance sans its [`StreamHeader`] and [`TypeHeader`] .
153
+ /// Returns the size of the instance sans its headers .
154
154
fn size ( & self ) -> usize ;
155
155
}
156
156
@@ -160,7 +160,7 @@ pub trait HeaderlessEncode: Send + std::fmt::Debug {
160
160
/// and then call [`Pdu::decode`] to decode the instance. See [`Pdu`] for more
161
161
/// details and an example.
162
162
pub trait HeaderlessDecode : Sized {
163
- /// Decodes the instance from a buffer sans its [`StreamHeader`] and [`TypeHeader`] .
163
+ /// Decodes the instance from a buffer sans its headers .
164
164
///
165
165
/// `charset` is an optional parameter that can be used to specify the character set
166
166
/// when relevant. This is useful for accounting for the "A" vs "W" variants of certain
0 commit comments