对于对于RandomAccessFile apk以下代码 apkseekcentralDirOffset-signatureBlockSize; ByteBuffer signatureBlockBuffer = ByteBufferallocatesignatureBlockSize; apkreadFullysignatureBlockBufferar
要缩小分配的内存,可以将ByteBuffer的allocate方法中的参数调小。根据代码中的使用情况,可以考虑根据实际需要的内存大小进行调整。
原文地址: http://www.cveoy.top/t/topic/iG05 著作权归作者所有。请勿转载和采集!