xref: /freebsd/contrib/file/magic/Magdir/webassembly (revision 62cfcf62f627e5093fb37026a6d8c98e4d2ef04c)
1#------------------------------------------------------------------------------
2# $File: webassembly,v 1.3 2019/04/19 00:42:27 christos Exp $
3# webassembly:  file(1) magic for WebAssembly modules
4#
5# WebAssembly is a virtual architecture developed by a W3C Community
6# Group at https://webassembly.org/. The file extension is .wasm, and
7# the MIME type is application/wasm.
8#
9# https://webassembly.org/docs/binary-encoding/ is the main
10# document describing the binary format.
11# From: Pip Cet <pipcet@gmail.com> and Joel Martin
12
130	string	\0asm	WebAssembly (wasm) binary module
14>4	lelong	=1	version %#x (MVP)
15>4	lelong	>1	version %#x
16