Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1028218 // isGZipFile

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2578L/17K).

static byte[] isGZipFile_magic = bytesFromHex("1f8b08");

sbool isGZipFile(File f) {
  ret byteArraysEqual(isGZipFile_magic, loadBeginningOfBinaryFile(f, l(isGZipFile_magic)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028218
Snippet name: isGZipFile
Eternal ID of this version: #1028218/1
Text MD5: c7d564ccae0851b9258660a5f776bfdd
Transpilation MD5: 7d5b11f8a72525e80bb6c3377f95d48d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-27 01:02:34
Source code size: 182 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 298
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)