Class: Syspy::TdsPackage

Inherits:
Object
  • Object
show all
Defined in:
lib/tds_package.rb

Direct Known Subclasses

TdsLanguage, TdsParamfmt, TdsParamfmt2, TdsParams

Instance Method Summary collapse

Instance Method Details

#read_int(io) ⇒ Object



22
23
24
# File 'lib/tds_package.rb', line 22

def read_int(io)
  Bytes.int(io)
end

#read_int16(io) ⇒ Object



30
31
32
# File 'lib/tds_package.rb', line 30

def read_int16(io)
  Bytes.int16le(io)
end

#read_int32(io) ⇒ Object



26
27
28
# File 'lib/tds_package.rb', line 26

def read_int32(io)
   Bytes.int32le(io)
end

#read_text(io, length) ⇒ Object



34
35
36
# File 'lib/tds_package.rb', line 34

def read_text(io,length)
  io.read(length)
end

#read_uint(io) ⇒ Object



10
11
12
# File 'lib/tds_package.rb', line 10

def read_uint(io)
  Bytes.uint(io)
end

#read_uint16(io) ⇒ Object



18
19
20
# File 'lib/tds_package.rb', line 18

def read_uint16(io)
  Bytes.uint16le(io)
end

#read_uint32(io) ⇒ Object



14
15
16
# File 'lib/tds_package.rb', line 14

def read_uint32(io)
  Bytes.uint32le(io)
end