mirror of
https://github.com/vidarh/ruby-x11
synced 2025-01-15 03:41:20 +01:00
18 lines
268 B
Ruby
18 lines
268 B
Ruby
module X11
|
|
class Protocol
|
|
|
|
# endiness of your machine
|
|
BYTE_ORDER = case [1].pack("L")
|
|
when "\0\0\0\1"
|
|
"B"
|
|
when "\1\0\0\0"
|
|
"l"
|
|
else
|
|
raise "Cannot determine byte order"
|
|
end
|
|
|
|
MAJOR = 11
|
|
MINOR = 0
|
|
|
|
end
|
|
end
|