static void
impl_Examples_ByteSeq_Storage_set(impl_POA_Examples_ByteSeq_Storage * servant,
				  const Examples_ByteSeq_Chunk * chunk,
				  CORBA_Environment * ev)
{
   /* ------   insert method code here   ------ */
   fprintf (stderr, "+");
 
   ORBit_sequence_set_size (servant->chunk, chunk->_length);
    
   {
           CORBA_long i=0;
           for (i = 0; i < chunk->_length; ++i)
                   ORBit_sequence_index (servant->chunk, i)
                           = ORBit_sequence_index (chunk, i);
   }
   /* ------ ---------- end ------------ ------ */
}
static Examples_ByteSeq_Chunk *
impl_Examples_ByteSeq_Storage_get(impl_POA_Examples_ByteSeq_Storage * servant,
				  CORBA_Environment * ev)
{
   Examples_ByteSeq_Chunk *retval;

   /* ------   insert method code here   ------ */
   fprintf (stderr, "-");

   retval = ORBit_sequence_alloc (TC_CORBA_sequence_CORBA_octet,
                                  servant->chunk->_length);

   {
           CORBA_long i=0;
           for (i = 0; i < servant->chunk->_length; ++i)
                   ORBit_sequence_index (retval, i)
                           = ORBit_sequence_index (servant->chunk, i);
   }
   /* ------ ---------- end ------------ ------ */

   return retval;
}
示例#3
0
static Test_LargeSeq_LargeData*
impl_Test_LargeSeq_get(impl_POA_Test_LargeSeq *servant,
const CORBA_long dataSize,
CORBA_Environment *ev)
{
Test_LargeSeq_LargeData* retval;
 /* ------   insert method code here   ------ */
 /* ------ ---------- end ------------ ------ */
CORBA_long i=0;
retval = ORBit_sequence_alloc (TC_Test_LargeSeq_LargeData, dataSize);
for(i=0; i<dataSize; i++)
  {
    ORBit_sequence_index(retval, i) = (CORBA_long) 0xAAAAAAAA;
  }

return retval;
}