RadioLib
Universal wireless communication library for Arduino
ITA2String Class Reference

ITA2-encoded string. More...

#include <ITA2String.h>

Public Member Functions

 ITA2String (char c)
 Default single-character constructor. More...
 
 ITA2String (const char *str)
 Default string constructor. More...
 
 ITA2String (const ITA2String &ita2)
 Copy constructor. More...
 
ITA2Stringoperator= (const ITA2String &ita2)
 Overload for assignment operator. More...
 
 ~ITA2String ()
 Default destructor.
 
size_t length ()
 Gets the length of the ITA2 string. This number is not the same as the length of ASCII-encoded string! More...
 
uint8_t * byteArr ()
 Gets the ITA2 representation of the ASCII string set in constructor. More...
 

Detailed Description

ITA2-encoded string.

Constructor & Destructor Documentation

◆ ITA2String() [1/3]

ITA2String::ITA2String ( char  c)
explicit

Default single-character constructor.

Parameters
cASCII-encoded character to encode as ITA2.

◆ ITA2String() [2/3]

ITA2String::ITA2String ( const char *  str)
explicit

Default string constructor.

Parameters
strASCII-encoded string to encode as ITA2.

◆ ITA2String() [3/3]

ITA2String::ITA2String ( const ITA2String ita2)

Copy constructor.

Parameters
ita2ITA2String instance to copy.

Member Function Documentation

◆ byteArr()

uint8_t * ITA2String::byteArr ( )

Gets the ITA2 representation of the ASCII string set in constructor.

Returns
Pointer to dynamically allocated array, which contains ITA2-encoded bytes. It is the caller's responsibility to deallocate this memory!

◆ length()

size_t ITA2String::length ( )

Gets the length of the ITA2 string. This number is not the same as the length of ASCII-encoded string!

Returns
Length of ITA2-encoded string.

◆ operator=()

ITA2String & ITA2String::operator= ( const ITA2String ita2)

Overload for assignment operator.

Parameters
ita2rvalue ITA2String.

The documentation for this class was generated from the following files: