# Protobuf Decode Raw (in Web Console) ## Open Console |OS |key | |:--- |:--- | |Windows | ```F12``` | |Mac | ```Command⌘ + Option⌥ + J``` | |Chromebook | ```Shift + Ctrl + J``` | ## Usage ``` // e.g. decode("089601"); getData(toUint8Array("089601")); decodeJson("089601"); decode("0a05010203040510011a0568656c6c6f220c08011204636f6f6c1a020801220f08021207617765736f6d651a020802220c080312046e6561741a020803"); ``` ## Functions * `getData(Uint8Array) => Object` protobufのUint8Arrayをjsonに変換する * `toUint8Array(String) => Uint8Array` 16進数文字列をUint8Arrayに変換する 例) toUint8Array("18E0092004") * `decode(String) => Object` getDataとtoUint8Arrayをまとめただけ * `decodeJson(Srring)` decode()の内容をJSON.stringifyしてconsoleに表示