class BitStream::Char
Constants
- LENGTH
Public Class Methods
instance(props)
click to toggle source
# File lib/types/character.rb, line 15 def self.instance(props) @instance end
Public Instance Methods
length()
click to toggle source
# File lib/types/character.rb, line 19 def length LENGTH end
read(s, offset)
click to toggle source
# File lib/types/character.rb, line 23 def read(s, offset) byteoffset = offset / 8 bitoffset = offset % 8 value = s[byteoffset] return FieldInfo.new(value, LENGTH) end
write(s, offset, value)
click to toggle source
# File lib/types/character.rb, line 32 def write(s, offset, value) end