mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Raise the AFC max transfer to 1MB (#39)
Signed-off-by: Abdullah Al-Banna <abdu.albanna@proton.me>
This commit is contained in:
committed by
GitHub
parent
761cb06418
commit
c1bc887fd4
@@ -12,8 +12,8 @@ use super::{
|
||||
packet::{AfcPacket, AfcPacketHeader},
|
||||
};
|
||||
|
||||
/// Maximum transfer size for file operations (64KB)
|
||||
const MAX_TRANSFER: u64 = 64 * 1024; // this is what go-ios uses
|
||||
/// Maximum transfer size for file operations (1MB)
|
||||
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> {
|
||||
(0..n)
|
||||
|
||||
Reference in New Issue
Block a user