Re: Distributed closure with buffer of binary data

2018-08-09 Thread F.D.
You're right! My fault!

On Thu, Aug 9, 2018 at 2:37 PM Ilya Kasnacheev 
wrote:

> Hello!
>
> WriteInt8Array accepts pointer and len, so I don't see why you have to
> pass char by char.
>
> Regards,
>
> --
> Ilya Kasnacheev
>
> 2018-08-09 1:32 GMT+03:00 F.D. :
>
>> Ok, but I think it's the same like WriteArray.
>>
>> For the moment I solved in a different way,using a encode/decode
>> functions.
>>
>> Thanks,
>>
>> On Wed, Aug 8, 2018 at 11:06 AM Ilya Kasnacheev <
>> ilya.kasnach...@gmail.com> wrote:
>>
>>> Hello!
>>>
>>> How about WriteInt8Array
>>> 
>>> ()?
>>>
>>> Regards,
>>>
>>> --
>>> Ilya Kasnacheev
>>>
>>> 2018-08-08 11:19 GMT+03:00 F.D. :
>>>
 Hello Igniters,

 My distributed closures work perfectly when the inputs are strings, but
 when I try to pass a buffer of bytes I got an error.

 The buffer of bytes arrives to me in a std::string but when I to
 use BinaryWriter::WriteString the string is truncated (ok, it was
 predictable). The question is there a method of BinaryWriter/BinaryReader
 to handles with buffer of char? (I found WriteArray, but I've to pass char
 by char).

 Thanks,
 F.D.

>>>
>>>
>


Re: Distributed closure with buffer of binary data

2018-08-09 Thread Ilya Kasnacheev
Hello!

WriteInt8Array accepts pointer and len, so I don't see why you have to pass
char by char.

Regards,

-- 
Ilya Kasnacheev

2018-08-09 1:32 GMT+03:00 F.D. :

> Ok, but I think it's the same like WriteArray.
>
> For the moment I solved in a different way,using a encode/decode functions.
>
> Thanks,
>
> On Wed, Aug 8, 2018 at 11:06 AM Ilya Kasnacheev 
> wrote:
>
>> Hello!
>>
>> How about WriteInt8Array
>> 
>> ()?
>>
>> Regards,
>>
>> --
>> Ilya Kasnacheev
>>
>> 2018-08-08 11:19 GMT+03:00 F.D. :
>>
>>> Hello Igniters,
>>>
>>> My distributed closures work perfectly when the inputs are strings, but
>>> when I try to pass a buffer of bytes I got an error.
>>>
>>> The buffer of bytes arrives to me in a std::string but when I to
>>> use BinaryWriter::WriteString the string is truncated (ok, it was
>>> predictable). The question is there a method of BinaryWriter/BinaryReader
>>> to handles with buffer of char? (I found WriteArray, but I've to pass char
>>> by char).
>>>
>>> Thanks,
>>> F.D.
>>>
>>
>>


Re: Distributed closure with buffer of binary data

2018-08-08 Thread F.D.
Ok, but I think it's the same like WriteArray.

For the moment I solved in a different way,using a encode/decode functions.

Thanks,

On Wed, Aug 8, 2018 at 11:06 AM Ilya Kasnacheev 
wrote:

> Hello!
>
> How about WriteInt8Array
> 
> ()?
>
> Regards,
>
> --
> Ilya Kasnacheev
>
> 2018-08-08 11:19 GMT+03:00 F.D. :
>
>> Hello Igniters,
>>
>> My distributed closures work perfectly when the inputs are strings, but
>> when I try to pass a buffer of bytes I got an error.
>>
>> The buffer of bytes arrives to me in a std::string but when I to
>> use BinaryWriter::WriteString the string is truncated (ok, it was
>> predictable). The question is there a method of BinaryWriter/BinaryReader
>> to handles with buffer of char? (I found WriteArray, but I've to pass char
>> by char).
>>
>> Thanks,
>> F.D.
>>
>
>


Re: Distributed closure with buffer of binary data

2018-08-08 Thread Ilya Kasnacheev
Hello!

How about WriteInt8Array

()?

Regards,

-- 
Ilya Kasnacheev

2018-08-08 11:19 GMT+03:00 F.D. :

> Hello Igniters,
>
> My distributed closures work perfectly when the inputs are strings, but
> when I try to pass a buffer of bytes I got an error.
>
> The buffer of bytes arrives to me in a std::string but when I to
> use BinaryWriter::WriteString the string is truncated (ok, it was
> predictable). The question is there a method of BinaryWriter/BinaryReader
> to handles with buffer of char? (I found WriteArray, but I've to pass char
> by char).
>
> Thanks,
> F.D.
>