module OSC::Util

Extended Modules

Defined in:

osc-crystal/util.cr

Instance Method Summary

Instance Method Detail

def align(x : Int) #

Calculate next aligned boundaries


[View source]
def align!(x : Array(UInt8)) #

Insert 0-3 null charactors to align.


[View source]
def args_start(data : Array(UInt8)) #

Serch index of head of arguments


[View source]
def bundle?(data : Array(UInt8), pos = 0) #

Check if data is bundle.


[View source]
def bundle?(data : String) #

Check if data is bundle.


[View source]
def message?(data : Array(UInt8), pos = 0) #

Check if data is Message.


[View source]
def message?(data : String) #

Check if data is Message.


[View source]
def skip_null(data : Array(UInt8), offset = 0) #

Skip null charactors.


[View source]
def skip_padding(data : Array(UInt8), offset = 0) #

Skip paddig (proceed the position to next head of alignment).


[View source]
def skip_until_null(data : Array(UInt8), offset = 0) #

Skip until this find a null charactors. This returns the index of past-the-end, if given data does'nt contain null.


[View source]
def tag_start(data : Array(UInt8)) #

Serch index of head of tag including ','


[View source]