Class: ICU::Lib::VersionInfo
- Inherits:
-
FFI::MemoryPointer
- Object
- FFI::MemoryPointer
- ICU::Lib::VersionInfo
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ffi-icu/lib.rb
Constant Summary collapse
- MaxLength =
4
- MaxStringLength =
20
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ VersionInfo
constructor
A new instance of VersionInfo.
- #to_a ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ VersionInfo
Returns a new instance of VersionInfo.
170 171 172 |
# File 'lib/ffi-icu/lib.rb', line 170 def initialize super :uint8, MaxLength end |
Class Method Details
.native_type ⇒ Object
166 167 168 |
# File 'lib/ffi-icu/lib.rb', line 166 def self.native_type FFI::Type::POINTER end |
Instance Method Details
#to_a ⇒ Object
174 175 176 |
# File 'lib/ffi-icu/lib.rb', line 174 def to_a read_array_of_uint8(MaxLength) end |
#to_s ⇒ Object
178 179 180 181 182 |
# File 'lib/ffi-icu/lib.rb', line 178 def to_s buffer = FFI::MemoryPointer.new(:char, MaxStringLength) Lib.u_versionToString(self, buffer) buffer.read_string_to_null end |