# oscP5 - vectors and length of message

**URL:** <https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791>\
**Category:** Libraries\
**Created:** [February 13, 2020, 2:09pm UTC](https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791 "2020-02-13T14:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasRef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/andreasref/32/133_2.png) [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Post date:** [February 13, 2020, 2:09pm UTC](https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791/1 "2020-02-13T14:09:26Z")

</div>

Hi

Two quick questions about the oscP5 library:

1. Am I correct that you cannot send PVectors via OSC?

2. When receiving an array of `ints` of a varying length via OSC, how do I parse it correctly, in situations where I don’t know the length of the array beforehand? Manual parsing, like shown in [https://github.com/sojamo/oscp5/blob/master/examples/legacy/oscP5parsing/oscP5parsing.pde](https://github.com/sojamo/oscp5/blob/master/examples/legacy/oscP5parsing/oscP5parsing.pde) does not help me, since I don’t know the length of the message in advance.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 15, 2020, 5:46am UTC](https://discourse.processing.org/t/oscp5-vectors-and-length-of-message/17791/2 "2020-02-15T05:46:02Z")

</div>

1. You cannot – OSC has a list of defined data types, it cannot send objects.however, you can send two floats, then make then into a PVector on the other side.

2. Can you send them all at once in an OSCBundle (see example)?
