var searchIndex = {}; searchIndex["rosc"] = {"doc":"**rosc** is an implementation of the [OSC 1.0](http://opensoundcontrol.org/spec-1_0) protocol in pure Rust.","items":[[3,"OscMidiMessage","rosc","Represents the parts of a Midi message. Mainly used for\ntunneling midi over a network using the OSC protocol.",null,null],[12,"port","","",0,null],[12,"status","","",0,null],[12,"data1","","",0,null],[12,"data2","","",0,null],[3,"OscMessage","","An OSC message consists of an address and\nzero or more arguments. The address should\nspecify an element of your Instrument (or whatever\nyou want to control with OSC) and the arguments\nare used to set properties of the element to the\nrespective values.",null,null],[12,"addr","","",1,null],[12,"args","","",1,null],[3,"OscBundle","","An OSC bundle contains zero or more OSC packets\nand a time tag. The contained packets *should* be\napplied at the given time tag.",null,null],[12,"timetag","","",2,null],[12,"content","","",2,null],[3,"OscColor","","An RGBA color.",null,null],[12,"red","","",3,null],[12,"green","","",3,null],[12,"blue","","",3,null],[12,"alpha","","",3,null],[4,"OscType","","see OSC Type Tag String: http://opensoundcontrol.org/spec-1_0\npadding: zero bytes (n*4)",null,null],[13,"Int","","",4,null],[13,"Float","","",4,null],[13,"String","","",4,null],[13,"Blob","","",4,null],[13,"Time","","",4,null],[13,"Long","","",4,null],[13,"Double","","",4,null],[13,"Char","","",4,null],[13,"Color","","",4,null],[13,"Midi","","",4,null],[13,"Bool","","",4,null],[13,"Nil","","",4,null],[13,"Inf","","",4,null],[4,"OscPacket","","An *osc packet* can contain an *osc message* or a bundle of nested messages\nwhich is called *osc bundle*.",null,null],[13,"Message","","",5,null],[13,"Bundle","","",5,null],[4,"OscError","","Represents errors returned by `decode` or `encode`.",null,null],[13,"StringError","","",6,null],[13,"ReadError","","",6,null],[13,"ByteOrderError","","",6,null],[13,"BadPacket","","",6,null],[13,"BadAddress","","",6,null],[13,"BadMessage","","",6,null],[13,"BadString","","",6,null],[13,"BadArg","","",6,null],[13,"BadBundle","","",6,null],[13,"Unimplemented","","",6,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",2,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"fmt","","",6,null],[0,"decoder","","Provides a decoding method for OSC packets.",null,null],[5,"decode","rosc::decoder","Takes an byte slice as argument and returns an\nOSC packet on success or an `OscError` if the slice\ndoes not contain a valid OSC message.",null,null],[17,"MTU","","Common MTU size for ethernet",null,null],[0,"encoder","rosc","Encodes an `OscPacket` to a byte vector.",null,null],[5,"encode","rosc::encoder","Takes a reference to an OSC packet and returns\na byte vector on success. If the packet was invalid\nan `OscError` is returned.",null,{"inputs":[{"name":"oscpacket"}],"output":{"name":"result"}}],[5,"encode_string","","Null terminates the byte representation of string `s` and\nadds null bytes until the length of the result is a\nmultiple of 4.",null,{"inputs":[{"name":"s"}],"output":{"name":"vec"}}],[5,"pad","","Returns the position padded to 4 bytes.",null,{"inputs":[{"name":"u64"}],"output":{"name":"u64"}}],[6,"Result","rosc","",null,null]],"paths":[[3,"OscMidiMessage"],[3,"OscMessage"],[3,"OscBundle"],[3,"OscColor"],[4,"OscType"],[4,"OscPacket"],[4,"OscError"]]}; initSearch(searchIndex);