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).

static byte[] isWAVByContent_magic = utf8("RIFF");

sbool isWAVByContent(byte[] data) {
  ret byteArrayStartsWith(data, isWAVByContent_magic);
}

sbool isWAVByContent(File f) {
  ret isWAVByContent(loadBeginningOfBinaryFile(f, l(isWAVByContent_magic)));
}

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: 77 / 118
Version history: 3 change(s)
Referenced in: [show references]