Skip to content

arthureleven/ebml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ebml

Keyword-based parser for ebml data

Table of contents

Installation

def deps do
  [{:ebml, "~> 0.1"}]
end

Usage

elements =
  File.read!("path/to/file")
  |> EBML.decode() # This will return a list of keywords

To access a specific element in the list, use Keyword.get/3. To access multiple elements, use Keyword.get_values/2:

segment = Keyword.get(elements, :Segment) # Returns Segment Information
blocks =
  segment
  |> Keyword.get(:Cluster)
  |> Keyword.get_values(:SimpleBlock) # Returns all SimpleBlock values

Technical information is available here.

About

Dependency-free keyword-based parser for ebml

Topics

Resources

License

Stars

Watchers

Forks

Languages