# IPC buffer sizes

**URL:** <https://forum.legato.io/t/ipc-buffer-sizes/3889>\
**Category:** Legato Application Framework\
**Created:** [November 19, 2018, 10:12am UTC](https://forum.legato.io/t/ipc-buffer-sizes/3889 "2018-11-19T10:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wololo](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wololo](https://forum.legato.io/u/wololo)\
**Post date:** [November 19, 2018, 10:12am UTC](https://forum.legato.io/t/ipc-buffer-sizes/3889/1 "2018-11-19T10:12:26Z")

</div>

Hello,

I am trying to créate an application that it shall receive and send large buffers of information in C.

My first approach was to use void pointers and to pass the size, but I realized that API files do not support this.

My next approach was to try to define a buffer of uint8 with a size enough to fit all my needs (let’s say 20000), something like this:  
FUNCTION le\_result\_t SendData(  
uint8 data[20000],  
);

My concern is if I use this SenData function, specifying a size of the buffer of 5 bytes, will legato only use this 5 bytes to pass the information? Or will it créate a buffer of size 20000 and then only use the 5 specified bytes?

Is there any limitation of size to be taken into accound for this kind of operations?

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [November 20, 2018, 2:10pm UTC](https://forum.legato.io/t/ipc-buffer-sizes/3889/2 "2018-11-20T14:10:04Z")

</div>

Hi @wololo,  
I think it will allocate the buffer of size what will be mentioned in the .api file. i.e., it will allocate the buffer size of 20000 bytes.

You can try with the simple application sending the buffer using IPC with some very big size like 500000 or 50000000 bytes, application will will not work throwing the error “failed with errno 90” or application will stop immediately.

Regards,  
Muralidhara N.
