|
Protocol++® (Protocolpp®) v5.7.2
|
Constructor for jarray initialized to size
| size | - size to initialize the array to |
Constructor for jarray initialized to size with value
| init | - initializer list in curly braces myarr<uint8_t> {0x10, 0x1E}; |
Constructor for jarray initialized to size with value
| size | - size to initialize the array to |
| value | - value to initialize the array to |
| format | - endianness of the constructed array (BIG, LITTLE) |
Copy Constructor for jarray
| rhs | - array to copy |
| format | - endianness of the constructed array (BIG, LITTLE) |
Constructor for jarray from a string
| rhs | - string to populate the array with |
| format | - endianness of the constructed array (BIG, LITTLE) |
| encoded | - Input string has already been encoded as HEX characters instead of being a simple string. For example, if the input string had been encoded as bytes each character in the string would be equal to something like '0x6C' or '0xAE'. If the input was a simple string each character would represent a single value such that the string "123ABC" is really "1", "2" "3", "A", "B", "C" and needs to be converted and grouped into HEX such that the resulting array has "0x12", "0x3A", and "0xBC". The Crypto++ library uses encoded strings. Set encoded to true to read in ASCII characters |

Constructor for jarray from a standard vector
| rhs | - vector to initialize the array with |
| format | - endianness of the constructed array (BIG, LITTLE) |
Constructor for jarray from a uint8_t raw pointer and size
| rhs | - byte pointer to initialize the array with |
| size | - length of the data to convert |
| format | - endianness of the constructed array (BIG, LITTLE) |
Constructor for jarray from a shared pointer
| rhs | - byte pointer to initialize the array with |
| format | - endianness of the constructed array (BIG, LITTLE) |
Constructor for jarray from one type to another
| rhs | - initial array to convert. Conversion is to type of array that is being constructed. Example: |
| format | - endianness of the constructed array (BIG, LITTLE) |

Method to add the array rhs to the current array
| rhs | - array to add to this array |

Method to add the array rhs to the current array
| rhs | - initializer list to add to this array |
Method to add the array rhs to the current array
| rhs | - pointer to array to add to this array |
| rhs_size | - length of the array pointed to by rhs |

Method to compare arrays side by side for debug as shown below prints to std::err
| expect | - Expected data to print |
| indent | - default indentation for pretty printing |

Method to determine if the array is empty
Method to remove the elements from the array starting at index and continuing for size. The original array is reduced by the number of elements requested
| index | - location to start erasing elements |
| elements | - number of elements to remove from this array |
Method to extract the number of elements from the array starting at the start value
| index | - index to start the extraction |
| elements | - number of elements to split from the array |

Method to return endianness format of this array
Method to return the pointer to the underlying data object of the array
Method to return the pointer to the underlying data object of the array
Method to return the shared pointer of the array
Method to return the shared pointer of the array
Method to retrieve size of this array
Method to insert the array rhs into this array starting at index The array is resized to accomodate this array plus the new array No elements of the original array are overwritten
| index | - location to start the insertion |
| rhs | - array to insert into this array |

Method to intersect two arrays and return the shared valeus in both arrays
| rhs | - array to intersect with this array (retains shared values) |

Method to compare two different arrays. First compares array size then iterates through all array values and compares them for inequality
| rhs | - array to compare with this array |

Method to compare two different arrays. First compares array size then iterates through all array values and compares them for inequality
| rhs | - array to compare with this array |

Method to AND two different arrays
| rhs | - array to AND with this array |

Method to MULTIPLY two different arrays
| rhs | - array to MULTIPLY with this array |

Method to ADD two different arrays
| rhs | - array to ADD with this array |

Method to compare two different arrays. First compares array size then iterates through all array values and compares them for equality
| rhs | - array to compare with this array |

Method to compare two different arrays. First compares array size then iterates through all array values and compares them for equality
| rhs | - array to compare with this array |

| T & jarray::operator[] | ( | uint32_t | index | ) |
Method to return array value at index
| index | - location of array element to return |
Method to return const array value at index
| index | - location of array element to return |
Method to XOR two different arrays
| rhs | - array to XOR with this array |

Method to OR two different arrays
| rhs | - array to OR with this array |

Method to removed the last element from the array. The element is destroyed in the process
Method to add a single element to the end of the array
| rhs | - element to add to this array |
Method to change the array size
| newsize | - either shrink or expand the array to the new size |
Method to split the number of elements from the front of the array and return it to the caller. The original array is reduced by the number of elements split from it
| elements | - number of elements to split from the array |

Method to convert this array into a string representation for printing purposes. Output is formatted either as a single, long string of HEX characters if 'printable' is false or is a pretty printed 16-bytes across with underscores as follows if 'printable' is true
| printable | - if false, output is a single string of HEX characters. If true, enables pretty_printing of the array with formatting |
| indent | - default indentation for pretty printing ignored if printable is false |
| xml | - Print as an XML data object as found below * 22223333444455556666777788889999 * 2222333344445555666677778888 * |

Method to update the array rhs into this array starting at index The array is resized to accomodate this array plus the new array Elements of the original array starting at index and extending for the length of rhs are overwritten with the new values
| index | - location to start the update |
| rhs | - array to update this array with |
