| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| private static List<File> splitFileInner(File destDir, File srcFile, long sourceSize, long bytesPerSplit, long numSplits) throws IOException { | ||
| List<File> partFiles = new ArrayList<>(); | ||
| final long remainingBytes = sourceSize % bytesPerSplit; |
There was a problem hiding this comment.
是不是这样可读性更强?
| final long remainingBytes = sourceSize % bytesPerSplit; | |
| final long remainingBytes = sourceSize - bytesPerSplit * numSplits; |
Sorry, something went wrong.
There was a problem hiding this comment.
👌
Sorry, something went wrong.
|
:Master |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
可以将一个文件按照期望的个数或者大小去切割