Bug 28981

Summary: demarshaller: Don't need extra data_size members for chunked data.
Product: Spice Reporter: Alexander Larsson <alexl>
Component: spicec (deprecated)Assignee: Spice Bug List <spice-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.