bitstream 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.en +71 -0
- data/lib/bitstream.rb +454 -0
- data/lib/types/character.rb +35 -0
- data/lib/types/cstring.rb +40 -0
- data/lib/types/integer.rb +131 -0
- data/lib/types/string-utils.rb +37 -0
- data/lib/types/string.rb +52 -0
- data/sample/gzip-viewer.rb +12 -0
- data/sample/gzip.rb +38 -0
- data/sample/tar-viewer.rb +15 -0
- data/test/test-array.rb +33 -0
- data/test/test-condition.rb +50 -0
- data/test/test-dynarray.rb +34 -0
- data/test/test-nesting.rb +64 -0
- data/test/test-primitives.rb +92 -0
- data/test/test-simple-properties.rb +34 -0
- data/test/test-suite.rb +14 -0
- data/test/types/test-character.rb +19 -0
- data/test/types/test-cstring.rb +18 -0
- data/test/types/test-integer.rb +98 -0
- data/test/types/test-string.rb +41 -0
- metadata +85 -0
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bitstream
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Natsuki Kawai
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: random-accessible
|
16
|
+
requirement: &80676780 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.2.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *80676780
|
25
|
+
description: ! 'BitStream is a mixin to write data structures of bit streams such
|
26
|
+
as picture, music, movie files, and e.t.c.. You can refer contents of bit streams
|
27
|
+
even when you are defining the data structures. With the function, you can write
|
28
|
+
a data structure easily that the header contains the data length of the body field.
|
29
|
+
|
30
|
+
'
|
31
|
+
email: natsuki.kawai@gmail.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files:
|
35
|
+
- README.en
|
36
|
+
files:
|
37
|
+
- lib/bitstream.rb
|
38
|
+
- lib/types/integer.rb
|
39
|
+
- lib/types/cstring.rb
|
40
|
+
- lib/types/string.rb
|
41
|
+
- lib/types/string-utils.rb
|
42
|
+
- lib/types/character.rb
|
43
|
+
- test/test-dynarray.rb
|
44
|
+
- test/test-simple-properties.rb
|
45
|
+
- test/test-suite.rb
|
46
|
+
- test/test-primitives.rb
|
47
|
+
- test/test-condition.rb
|
48
|
+
- test/test-array.rb
|
49
|
+
- test/test-nesting.rb
|
50
|
+
- test/types/test-character.rb
|
51
|
+
- test/types/test-string.rb
|
52
|
+
- test/types/test-integer.rb
|
53
|
+
- test/types/test-cstring.rb
|
54
|
+
- sample/gzip-viewer.rb
|
55
|
+
- sample/tar-viewer.rb
|
56
|
+
- sample/gzip.rb
|
57
|
+
- README.en
|
58
|
+
homepage: https://github.com/natsuki14/bitstream
|
59
|
+
licenses:
|
60
|
+
- Ruby's
|
61
|
+
- 2-clause BSDL
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 1.9.1
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
requirements: []
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 1.8.12
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: A bitstream parser supports dynamic-defined fields
|
84
|
+
test_files:
|
85
|
+
- test/test-suite.rb
|