Bug 57629
Summary: | [WK2] Add encoding/decoding support for basic data types in WK API | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chang Shu <cshu> |
Component: | WebKit2 | Assignee: | Chang Shu <cshu> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 57515 |
Chang Shu
I am thinking adding some WK API for encoding/decoding basic data types like:
WKArgumentDecoderRef WKCreateArgumentDecoder(const unsigned char* data, size_t length);
bool WKDecodeUInt32(WKArgumentDecoderRef argumentDecoderRef, uint32_t& value);
I did this in the patch for bug 57515. But it may be better to separate the effort of decoding in this bug.
Any comments? Thanks,
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Chang Shu
WKArray and WKDictionary is the way to go. Thus close this bug.