Bug 28981 - demarshaller: Don't need extra data_size members for chunked data.
Summary: demarshaller: Don't need extra data_size members for chunked data.
Status: RESOLVED WONTFIX
Alias: None
Product: Spice
Classification: Unclassified
Component: spicec (deprecated) (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 07:26 UTC by Alexander Larsson
Modified: 2015-06-19 18:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alexander Larsson 2010-07-09 07:26:50 UTC
Take for example:

typedef struct SpiceQUICData {
    uint32_t data_size;
    SpiceChunks *data;
}

With the protocol description:

struct BinaryData {
    uint32 data_size;
    uint8 data[data_size] @nomarshal @chunk;
} @ctype(SpiceQUICData);

Since SpiceChunks* already contains the data size we should not need to store it separately in SpiceQUICData. However, this needs some work in the codegeneration to work.
Comment 1 Victor Toso 2015-06-19 18:02:10 UTC
Closing this as spicec is deprecated.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.