What is "pair" in "handleValuePair"

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DeCo_1926091
Level 4
Level 4
First like received

Would someone be kind enough to answer this, probably stupid, question?

   

In the term "handleValuePair"  what exactly does "pair" refer to?  Pair means two of the same or similar items.  Does it mean two values or two things that refer to the value such as the actual value and the length?  But if so aren't there more than two things (actual length)?

   

Thanks for your help,

   

Dennis

0 Likes
1 Solution
Anonymous
Not applicable

handleValuePair is a single term referring to the process of grouping a handle "paired" with a value. The handle is an index value that referes to the location (handle) that the corresponding value is located at. Thus, it is more of a terminology for describing the structure/object. The handleValuePair should contain: a handle (index), a value (uint8 * ptr), and a value length (length of the uint8 * array). The value pointer and value length would be considered inherent when using arrays however, and thus the word "pair" in the naming of the type is merely to reinforce that the handle and value are paired together for use.

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

handleValuePair is a single term referring to the process of grouping a handle "paired" with a value. The handle is an index value that referes to the location (handle) that the corresponding value is located at. Thus, it is more of a terminology for describing the structure/object. The handleValuePair should contain: a handle (index), a value (uint8 * ptr), and a value length (length of the uint8 * array). The value pointer and value length would be considered inherent when using arrays however, and thus the word "pair" in the naming of the type is merely to reinforce that the handle and value are paired together for use.

0 Likes

Thanks for a great explanation!  I really appreciate your response.

   

Dennis

0 Likes