Results 1 to 2 of 2

Thread: Byte sequence zero copy with AMD in Ice 3.4x

  1. #1
    lafayej is offline Registered User
    Name: Julien Lafaye
    Organization: Capital Fund Management
    Project: Control distributed data acquisition application
    Join Date
    Sep 2009
    Posts
    15

    Byte sequence zero copy with AMD in Ice 3.4x

    Hello,

    I have a method that should return a data buffer (a sequence of bytes). To avoid unnecessary copies I am trying to use so-called zero-copy mode that is only available in AMD/AMI methods.

    I have written the following Ice definition:
    module Test {

    sequence<byte> ByteSeq;
    interface Resolver
    {
    ["amd"] void getData(int id, out ["cpp:array"] ByteSeq data);
    };
    };

    When I compile it, I get a header file that contains code that does not compile. Below is a sample of a portion where my compiler fails (line 190 of the generated file):

    private:
    void end_getData(::Test::ByteSeq& data, const ::Ice::AsyncResultPtr&);

    void ___end_getData(::std:air<const ::Ice::Byte*, const ::Ice::Byte*>& data, ??? __ret, const ::Ice::AsyncResultPtr&);

    The example worked fine in Ice 3.3.1. I wanted to move to Ice 3.4.1 to be able to use the new AMI code. In Ice 3.3.1 I was only using AMD, not AMI.

    Did I miss something ? I notice the odd behaviour in both Ice 3.4.0 and Ice 3.4.1.

    Thanks in advance,

    Julien

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi,

    Thanks for the bug report. We'll fix this in the next release.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-20-2011, 09:08 AM
  2. C# byte sequence mapping
    By kwaclaw in forum Comments
    Replies: 1
    Last Post: 11-28-2010, 03:27 PM
  3. Is serialization zero copy?
    By Markus Bernhard in forum Help Center
    Replies: 4
    Last Post: 06-14-2006, 07:54 AM
  4. Replies: 4
    Last Post: 06-22-2005, 09:33 PM
  5. Questions about sequence<byte> in C++?
    By rodrigc in forum Help Center
    Replies: 3
    Last Post: 02-24-2003, 10:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •