Ravn::
Tak module
Extended With |
|
Namespace for TAK protobuf messages, loosely described at:
Within that directory also lives the .proto description files – ensure you’re using a “protoc” binary >= 0.27 to generate the descriptors found below.
This currently is only a parser/generator for protobuf formatted TAK messages, and a landing spot for future TAK functionality.
Ravn::Tak.parse
( binary_packet ) #=> (ruby hash)
Constants
- DESCRIPTORS
Namespaces and their descriptors. Order matters! Some of these have interdependencies.
- MAGIC_BYTE
TAK identification bit.
- PROTOBUF_POOL
The protobuf description parser.
Public Instance Methods
Given a raw
binary blob (presumably from the network), decode and return a parsed TakMessage
structure. If unparsable, raises a Ravn::Tak::ParseError
.
Return a ruby object from a TakMessage
protobuf message
.
Return a ruby object from an XML-style TAK message
.