crtype
crtype
Types can be stored in variables
Installation
Add this to your application's shard.yml
:
dependencies:
crtype:
github: unn4m3d/crtype
Usage
require "crtype"
types = Array(CrType::AbstractType).new
types.push CrType::Type(UInt8).new
types.push CrType::Type(UInt16).new
types.push CrType::Type(UInt32).new
types.push CrType::Type(UInt64).new
types.each{|e| puts e.inner_type.name}
int8 = 0u8
types.each{|e|
puts (e.inner_type.new(int8) - 1u8).to_s(16)
}
Contributing
- Fork it ( https://github.com/unn4m3d/crtype/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- unn4m3d - creator, maintainer
Repository
crtype
Owner
Statistic
- 6
- 0
- 0
- 0
- 0
- about 8 years ago
- September 15, 2016
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 01:49:07 GMT
Languages