cstruct 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +81 -0
- data/cstruct.gemspec +10 -0
- data/doc/examples/anonymous_struct.rb.html +94 -94
- data/doc/examples/anonymous_union.rb.html +93 -93
- data/doc/examples/array_member.rb.html +79 -79
- data/doc/examples/file_io.rb.html +87 -87
- data/doc/examples/first_example.rb.html +104 -104
- data/doc/examples/get_system_info.rb.html +114 -114
- data/doc/examples/get_versionex.rb.html +97 -97
- data/doc/examples/global_memory.rb.html +102 -102
- data/doc/examples/inner_struct.rb.html +79 -79
- data/doc/examples/inner_union.rb.html +77 -77
- data/doc/examples/namespace.rb.html +80 -80
- data/doc/examples/show_processes.rb.html +95 -95
- data/doc/examples/struct_member.rb.html +128 -128
- data/doc/stylesheets/ie.css +8 -8
- data/examples/anonymous_struct.rb +6 -6
- data/examples/anonymous_union.rb +5 -5
- data/examples/array_member.rb +1 -1
- data/examples/file_io.rb +22 -23
- data/examples/first_example.rb +4 -4
- data/examples/inner_struct.rb +5 -5
- data/examples/inner_union.rb +4 -4
- data/examples/namespace.rb +15 -15
- data/examples/win32/get_system_info.rb +31 -31
- data/examples/win32/get_versionex.rb +12 -12
- data/examples/win32/global_memory.rb +9 -9
- data/examples/win32/show_processes.rb +28 -28
- data/lib/cstruct.rb +1 -523
- data/lib/cstruct/cstruct.rb +457 -0
- data/lib/cstruct/field.rb +45 -0
- data/lib/cstruct/utils.rb +53 -0
- data/lib/cstruct/win32struct.rb +84 -0
- data/lib/cstruct/win64struct.rb +5 -0
- data/lib/win32struct.rb +3 -90
- data/lib/win64struct.rb +3 -13
- data/spec/cstruct_spec.rb +240 -0
- metadata +62 -73
metadata
CHANGED
@@ -1,46 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cstruct
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
7
|
+
authors:
|
8
|
+
- skandhas
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-11-07 00:00:00 +08:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-02-12 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description:
|
22
15
|
email: skandhas@163.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
19
|
+
files:
|
20
|
+
- lib/cstruct/cstruct.rb
|
21
|
+
- lib/cstruct/field.rb
|
22
|
+
- lib/cstruct/utils.rb
|
23
|
+
- lib/cstruct/win32struct.rb
|
24
|
+
- lib/cstruct/win64struct.rb
|
25
|
+
- lib/cstruct.rb
|
26
|
+
- lib/win32struct.rb
|
27
|
+
- lib/win64struct.rb
|
28
|
+
- spec/cstruct_spec.rb
|
29
|
+
- examples/anonymous_struct.rb
|
30
|
+
- examples/anonymous_union.rb
|
31
|
+
- examples/array_member.rb
|
32
|
+
- examples/file_io.rb
|
33
|
+
- examples/first_example.rb
|
34
|
+
- examples/inner_struct.rb
|
35
|
+
- examples/inner_union.rb
|
36
|
+
- examples/namespace.rb
|
37
|
+
- examples/struct_member.rb
|
38
|
+
- examples/win32/get_system_info.rb
|
39
|
+
- examples/win32/get_versionex.rb
|
40
|
+
- examples/win32/global_memory.rb
|
41
|
+
- examples/win32/show_processes.rb
|
42
|
+
- doc/documents.html
|
44
43
|
- doc/examples/anonymous_struct.rb.html
|
45
44
|
- doc/examples/anonymous_union.rb.html
|
46
45
|
- doc/examples/array_member.rb.html
|
@@ -54,56 +53,46 @@ files:
|
|
54
53
|
- doc/examples/namespace.rb.html
|
55
54
|
- doc/examples/show_processes.rb.html
|
56
55
|
- doc/examples/struct_member.rb.html
|
57
|
-
- doc/index.html
|
58
56
|
- doc/examples.html
|
59
|
-
- doc/
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
|
77
|
-
|
78
|
-
licenses:
|
79
|
-
- Ruby License
|
57
|
+
- doc/images/examples.png
|
58
|
+
- doc/images/excample1.png
|
59
|
+
- doc/images/excample2.png
|
60
|
+
- doc/images/green-point.png
|
61
|
+
- doc/images/learnmore.png
|
62
|
+
- doc/images/logo.png
|
63
|
+
- doc/images/news.png
|
64
|
+
- doc/images/point.png
|
65
|
+
- doc/images/start.png
|
66
|
+
- doc/images/synopsish.png
|
67
|
+
- doc/images/Thumbs.db
|
68
|
+
- doc/index.html
|
69
|
+
- doc/stylesheets/coderay.css
|
70
|
+
- doc/stylesheets/ie.css
|
71
|
+
- doc/stylesheets/style.css
|
72
|
+
- README.md
|
73
|
+
- cstruct.gemspec
|
74
|
+
homepage: http://github.com/skandhas/cstruct
|
75
|
+
licenses: []
|
80
76
|
post_install_message:
|
81
77
|
rdoc_options: []
|
82
|
-
|
83
|
-
require_paths:
|
78
|
+
require_paths:
|
84
79
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
81
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
version: "0"
|
93
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
87
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
- 0
|
100
|
-
version: "0"
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
101
92
|
requirements: []
|
102
|
-
|
103
93
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.
|
94
|
+
rubygems_version: 1.8.15
|
105
95
|
signing_key:
|
106
96
|
specification_version: 3
|
107
97
|
summary: CStruct is a simulation of the C language's struct.
|
108
98
|
test_files: []
|
109
|
-
|