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

9
LINES

< > BotCompany Repo | #1032430 // isWAVByContent ("RIFF")

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

Libraryless. Click here for Pure Java version (3265L/18K).

1  
static byte[] isWAVByContent_magic = utf8("RIFF");
2  
3  
sbool isWAVByContent(byte[] data) {
4  
  ret byteArrayStartsWith(data, isWAVByContent_magic);
5  
}
6  
7  
sbool isWAVByContent(File f) {
8  
  ret isWAVByContent(loadBeginningOfBinaryFile(f, l(isWAVByContent_magic)));
9  
}

Author comment

Began life as a copy of #1009031

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032430
Snippet name: isWAVByContent ("RIFF")
Eternal ID of this version: #1032430/4
Text MD5: e3efb19bf385ab0b92e05fa85169eba3
Transpilation MD5: 9dc942366d0ad9f3afd50d7eec43d8d0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-04 18:03:44
Source code size: 263 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 184 / 235
Version history: 3 change(s)
Referenced in: [show references]