• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language Haxe
  • Created over 11 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Various files formats support for Haxe

TravisCI Build Status

The format library contains support for different file-formats for the Haxe programming language.

Formats

Currently supported formats are :

Format Description Reader Writer
ABC Flash AS3 bytecode format โ˜‘ โ˜‘
AGAL Adobe Shader Assembler for Stage3D โŒ โ˜‘
AMF Flash serialized object โ˜‘ โ˜‘
AS1 Adobe ActionScript1-2 bytecode in SWF โ˜‘ โŒ
BMP Bitmap Image format โ˜‘ โ˜‘
ELF Executable and Linkable Format โ˜‘ โŒ
FLV Flash Video โ˜‘ โ˜‘
GIF Image file format โ˜‘ โ˜‘
GZ Compressed file โ˜‘ โŒ
HL HashLink โ˜‘ โŒ
ICO Windows ICO/CUR File format โ˜‘ โŒ
JPG Image file format โŒ โ˜‘
LZ4 Compressed file โ˜‘ โŒ
MP3 Compressed audio โ˜‘ โ˜‘
NEKO NekoVM bytecode โ˜‘ โŒ
PBJ PixelBender Binary file โ˜‘ โ˜‘
PDF Only generic file structure and partial decryption โ˜‘ โŒ
PEX Particle effect format โ˜‘ โŒ
PNG Image file format โ˜‘ โ˜‘
SWF Flash file format โ˜‘ โ˜‘
TAR Compressed Archive โ˜‘ โ˜‘
TGA TARGA Image file format; Reader/Writer does not support developer data chunk; Writer does not support RLE encoding โ˜‘ โ˜‘
TGZ TAR+GZ Archive โ˜‘ โŒ
WAV Raw sound โ˜‘ โ˜‘
ZIP Compressed Archive โ˜‘ โ˜‘

Documentation

Automatically generated API documentation is here: https://haxefoundation.github.io/format/format/

Installation

Available on haxelib, simply run the following command : haxelib install format. To use the library, simply add -lib format to your commandline parameters.

Package Structure

Each format lies in its own package, for example format.pdf contains classes for PDF.

The format.tools package contain some tools that might be shared by several formats but don't belong to a specific one.

Each format must provide the following files :

  • one Data.hx file that contain only data structures / enums used by the format. If there is really a lot, they can be separated into several files, but it's often my easy for the end user to only have to do one single import format.xxx.Data to access to all the defined types.
  • one Reader.hx class which enable to read the file format from an haxe.io.Input
  • one Writer.hx class which enable to write the file format to an haxe.io.Output
  • some other classes that might be necessary for manipulating the data structures

It's important in particular that the data structures storing the decoded information are separated from the actual classes manipulating it. This enable full access to all the file format infos and the ability to easily write libraries that manipulate the format, even if later the Reader implementation is changed for example.

Contributing

We're accepting contributions if they are following the package structure rules (see above), please send them as Pull Requests.

More Repositories

1

haxe

Haxe - The Cross-Platform Toolkit
Haxe
6,166
star
2

hashlink

A virtual machine for Haxe
C
810
star
3

neko

The Neko Virtual Machine
C
553
star
4

hxcpp

Runtime files for c++ backend for haxe
C++
297
star
5

hscript

Parser and interpreter for Haxe expressions
Haxe
262
star
6

intellij-haxe

Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
Java
220
star
7

HaxeManual

The official Haxe manual
Haxe
218
star
8

as3hx

Convert AS3 sources to their Haxe equivalent
Haxe
174
star
9

haxelib

The Haxe library manager
Haxe
172
star
10

hxnodejs

Haxe externs for working with node.js
Haxe
171
star
11

dox

Haxe documentation generator.
Haxe
146
star
12

code-cookbook

The Haxe Code Cookbook - A community driven resource website for learning Haxe in practise
Haxe
112
star
13

haxe-evolution

Repository for maintaining proposal for changes to the Haxe programming language
111
star
14

haxe.org

The haxe.org website
HTML
81
star
15

haxe-markdown

A Markdown parser in Haxe.
Haxe
63
star
16

hxcs

Haxe C# support library. Build scripts and support code.
Haxe
57
star
17

record-macros

Macro-based ORM (object-relational mapping)
Haxe
49
star
18

hxcpp-debugger

Cross-platform debugger for hxcpp
Haxe
49
star
19

crypto

Cross platform cryptographic functions for Haxe
Haxe
48
star
20

npm-haxe

Install Haxe using Node Package Manager aka npm
JavaScript
46
star
21

hxjava

Haxe Java support library. Build scripts and support code.
Haxe
46
star
22

tora

NekoVM Application Server
Haxe
30
star
23

docker-library-haxe

Docker official image for Haxe
Dockerfile
28
star
24

ocamllibs

Various OCaml Libraries
OCaml
24
star
25

Project-Management

Project management and communication
20
star
26

haxedevelop.org

Website content and sources
Haxe
19
star
27

try.haxe.org

run Haxe code snippets in your browser
Haxe
18
star
28

hx3compat

Haxe 3 compatibility lib for Haxe 4
Haxe
16
star
29

html-externs

HTML externs for Haxe
IDL
15
star
30

hxnodelibs

Haxe
14
star
31

ocamhaxe

OCaml distribution for Haxe compilation
Haxe
11
star
32

haxe-debian

Debianizing Haxe
Haxe
11
star
33

api.haxe.org

Haxe API documentation
Haxe
10
star
34

hxgithub

Haxe
8
star
35

haxe-terraform

Haxe Foundation infrastructure
HCL
5
star
36

nekovm.org

The website for NekoVM.
Haxe
5
star
37

neko-debian

Debianizing Neko
C
4
star
38

build.haxe.org

Snapshot build storage web UI
Haxe
3
star
39

hx4compat

Haxe 4 compatibility lib for Haxe 5, or maybe the other way aroun?
Haxe
3
star
40

haxe.org-comments

Repository to collect comments of our haxe.org websites
2
star
41

hashlink.haxe.org

HTML
2
star
42

homebrew-haxe

Haxe formulae for the Homebrew package manager
Ruby
1
star
43

summit.haxe.org

Haxe
1
star
44

haxe-deps

A luarocks spec for the dependencies required for the Haxe Lua target
Lua
1
star
45

haxe-choco

Chocolatey Haxe package
Haxe
1
star