Raise the AFC max transfer to 1MB (#39)

Signed-off-by: Abdullah Al-Banna <abdu.albanna@proton.me>
This commit is contained in:
Abdullah Al-Banna
2025-11-27 09:49:26 -08:00
committed by GitHub
parent 761cb06418
commit c1bc887fd4

View File

@@ -12,8 +12,8 @@ use super::{
packet::{AfcPacket, AfcPacketHeader}, packet::{AfcPacket, AfcPacketHeader},
}; };
/// Maximum transfer size for file operations (64KB) /// Maximum transfer size for file operations (1MB)
const MAX_TRANSFER: u64 = 64 * 1024; // this is what go-ios uses const MAX_TRANSFER: u64 = 1024 * 1024; // this is what libimobiledevice uses in it's afcclient
fn chunk_number(n: usize, chunk_size: usize) -> impl Iterator<Item = usize> { fn chunk_number(n: usize, chunk_size: usize) -> impl Iterator<Item = usize> {
(0..n) (0..n)