mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
This commit is contained in:
1 parent
ce0966d5e2
commit
7f361a79cf
16 files changed
+2019
-252
No files matched your search
@@ -440,6 +440,9 @@ func parseSignatureFile(data []byte) (*SignatureFile, error) {
|
||||
// 返回: []byte 文件数据, error 错误信息
|
||||
func (r *Reader) readFileExact(name string) ([]byte, error) {
|
||||
name = cleanPackagePath(name)
|
||||
if data, ok := r.files[name]; ok {
|
||||
return bytes.Clone(data), nil
|
||||
}
|
||||
if f, ok := r.fileIndex[name]; ok {
|
||||
return readZipFile(f)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user