ซอร์สที่เผยแพร่
ดาวน์โหลด ZIP ของซอร์ส
CH-J SM Mobile
เรียกดูไดเรกทอรีและไฟล์ของรุ่นแอปพลิเคชันที่ระบุ
CH-J / SM Mobile
175 ไฟล์
sm-mobile-20261016T185235Z-8e93ecc1b59a
วันที่เพิ่ม: · วันที่บิลด์:
1
import 'dart:typed_data';2
import 'dart:io';3
import 'package:path_provider/path_provider.dart';4
import '../core/failure.dart';6
Future<Uint8List> readBounded(Stream<List<int>> stream, int limit) async {7
final bytes = BytesBuilder(copy: false);8
await for (final chunk in stream) {9
if (bytes.length + chunk.length > limit) {10
throw const Failure('invalidImport');11
}12
bytes.add(chunk);13
}14
return bytes.takeBytes();15
}17
Future<void> purgeTransferCache() async {18
final root = await getTemporaryDirectory();19
await for (final entry in root.list(followLinks: false)) {20
if (entry is Directory &&21
entry.path22
.split(Platform.pathSeparator)23
.last24
.startsWith('sm-transfer-')) {25
try {26
await entry.delete(recursive: true);27
} catch (_) {28
/* Retry at next launch. */29
}30
}31
}32
}SHA-256
032fcb7ef1f7a21014510cc696a9831bd9ea4a2bafb016c97a79149d7e7486ceCH-J Proprietary Software License 1.14 · ซอร์สโค้ดนี้ให้ไว้ภายใต้ CH-J Proprietary Software License 1.14 การเปิดให้เข้าถึงไม่ได้เปลี่ยนแปลงเงื่อนไขของสัญญาอนุญาตหรือให้สิทธิ์เพิ่มเติม
SHA-256 ของไฟล์บีบอัด
46e427a43e87af091004f36145590bda8fe90086dfb0f631afeb5029fb0b5655