commit | 9482293608efe5caa30dfe5e28f31262bd56f9bd | [log] [tgz] |
---|---|---|
author | Johannes Henkel <johannes@chromium.org> | Wed Jan 30 22:38:51 2019 |
committer | Johannes Henkel <johannes@chromium.org> | Wed Jan 30 22:38:51 2019 |
tree | 8a84762df9583e86d778b4e63e76ed1143b92eb6 | |
parent | 0afb26d755b5906dd9e6755076178b881a3e2bff [diff] |
Add a mechanism for recording an ENVELOPE item. An ENVELOPE consists of: * 0xd8 - envelope start byte, a tag with add. info 24 * 0x5a - byte string with 32 bit wide length * a uint32, encoded in 4 bytes (most significant byte first) * payload By default, CBORTokenizer will consider the envelope a single item, that is, Next() will advance past the entire thing including the payload. However, EnterEnvelope() lets the client code look inside and explore. For now, Both arrays and maps are encoded with an envelope around them. But we may tweak this later. Since a message is a map at the top level, that means it's now wrapped with an envelope, allowing us to extract the size of the message from the first 6 bytes. It also gives messages a signature: 0xd8, 0xda. Change-Id: Ibdfe531c2ea8e3de62ef45da2208a283890208d7
This package contains code generators and templates for the Chromium inspector protocol.
The canonical location of this package is at https://chromium.googlesource.com/deps/inspector_protocol/
In the Chromium tree, it's rolled into https://cs.chromium.org/chromium/src/third_party/inspector_protocol/
In the V8 tree, it's rolled into https://cs.chromium.org/chromium/src/v8/third_party/inspector_protocol/
See also Contributing to Chrome Devtools Protocol.
We‘re working on enabling standalone builds for parts of this package for testing and development, please feel free to ignore this for now. But, if you’re familiar with Chromium's development process and have the depot_tools installed, you may use these commands to fetch the package (and dependencies) and build and run the tests:
fetch inspector_protocol cd src gn gen out/Release ninja -C out/Release json_parser_test out/Release/json_parser_test