mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
parent
cc3dbf124f
commit
fe676eeac5
18 changed files with 72 additions and 73 deletions
|
@ -1,9 +1,7 @@
|
|||
use core::{cmp, fmt};
|
||||
|
||||
use ironrdp_pdu::{
|
||||
fast_path::{EncryptionFlags, FastPathHeader, FastPathUpdatePdu, Fragmentation, UpdateCode},
|
||||
Encode, WriteCursor,
|
||||
};
|
||||
use ironrdp_pdu::fast_path::{EncryptionFlags, FastPathHeader, FastPathUpdatePdu, Fragmentation, UpdateCode};
|
||||
use ironrdp_pdu::{Encode, WriteCursor};
|
||||
|
||||
// this is the maximum amount of data (not including headers) we can send in a single TS_FP_UPDATE_PDU
|
||||
const MAX_FASTPATH_UPDATE_SIZE: usize = 16_374;
|
||||
|
@ -100,9 +98,10 @@ impl UpdateFragmenter {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use ironrdp_core::{decode_cursor, ReadCursor};
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_single_fragment() {
|
||||
let data = vec![1, 2, 3, 4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue