xtd 0.2.0
Loading...
Searching...
No Matches

◆ operator[]() [1/2]

byte & xtd::net::socket_address::operator[] ( size_t  index)

Gets or sets the specified index element in the underlying buffer.

Parameters
indexThe array index element of the desired information.
Returns
The value of the specified index element in the underlying buffer.
Exceptions
xtd::argument_out_of_range_exceptionindex is equal to or greater than size.
Remarks
This property gets or sets the specified byte position in the underlying buffer.
Note
Be sure to call xtd::net::socket_address::size before referring to elements in the underlying buffer. Referring to an index that does not exist will cause the xtd::net::socket_address to throw an xtd::argument_out_of_range_exception.