|
AMPS C# Client
5.3.5.0
AMPS C# Client for .NET
|
Field data for a Message which consists of a string. More...
Inheritance diagram for AMPS.Client.Fields.StringField:Public Member Functions | |
| StringField (string value) | |
| Initializes a new instance of the StringField class with the specified string value. More... | |
| StringField () | |
| Default constructor. More... | |
| virtual string | getValue (Encoding decoder) |
| Returns a string representation of the Field value, where the bytes are interpreted by using the specified decoder. More... | |
| bool | getValue (byte[] v) |
| Writes the byte value of this instance into the specified byte buffer, if the value is not null. More... | |
| bool | getValue (CommandId v) |
| Writes the byte value of this instance into the specified command ID object, if the value is not null. More... | |
| void | setValue (byte[] v, int offset, int length) |
| Sets the value of this instance with the specified region of a byte buffer. More... | |
| void | setValue (CommandId v) |
| Sets the value of this instance from the specified command ID. More... | |
| void | setValue (string v, Encoding encoder) |
| Sets the value of this instance from the specified string. The characters of the string are interpreted using the specified encoder. This method makes its own copy of the bytes. More... | |
Public Member Functions inherited from AMPS.Client.Fields.Field | |
| Field () | |
| Default construntotor. More... | |
| Field (string value) | |
| Constructs an instance with the bytes of the specified string value. The string is interpreted as the UTF-8 representation. More... | |
| Field (byte[] buffer, int position, int length) | |
| Constructs an instance with the specified region of a byte buffer. Note: the bytes are not copied from the buffer. The specified buffer region is referenced by this instance. More... | |
| void | set (byte[] buffer, int position, int length) |
| Sets the value of this instance with the specified region of a byte buffer. Note: the bytes are not copied from the buffer. The specified buffer region is referenced by this instance. More... | |
| void | set (byte[] buffer) |
| Sets the value of this instance with the specified buffer. Note: the bytes are not copied from the buffer. The buffer is referenced by this instance. More... | |
| bool | isNull () |
| Indicates whether this instance's value is null. More... | |
| void | reset () |
| Resets the value of this instance to null. More... | |
| byte | byteAt (int i) |
| Returns the byte at position plus index i. More... | |
| override bool | Equals (Object obj) |
| Default implementation for Object#equals for a Field. For two Fields to be considered equal, their values must have the same length and all bytes in the value must be equal. More... | |
| override int | GetHashCode () |
| Gets the hash code for the Field. More... | |
| Field | copy () |
| Constructs a new Field and sets its value to a deep copy of this instance. More... | |
| virtual void | copyFrom (Field f) |
| Provides a way to make this object a duplicate of f. More... | |
Protected Member Functions | |
| StringField (byte[] buffer, int position, int length) | |
| Initializes a new instance of the StringField class with the specified buffer, position, and length. More... | |
Static Protected Attributes | |
| const string | LATIN1 = "ISO-8859-1" |
| const byte | LATIN1_ZERO = 48 |
Additional Inherited Members | |
Public Attributes inherited from AMPS.Client.Fields.Field | |
| byte[] | buffer = null |
| int | position = 0 |
| int | length = 0 |
|
inlineprotected |
Initializes a new instance of the StringField class with the specified buffer, position, and length.
| buffer | The byte array buffer containing the string data. |
| position | The starting position of the string within the buffer. |
| length | The length of the string. |
|
inline |
Initializes a new instance of the StringField class with the specified string value.
| value | The string value to initialize the StringField with. |
|
inline |
Default constructor.
|
inline |
Writes the byte value of this instance into the specified byte buffer, if the value is not null.
| v | The byte buffer to write in to. |
|
inline |
Writes the byte value of this instance into the specified command ID object, if the value is not null.
| v | The command ID object to write in to |
|
inlinevirtual |
Returns a string representation of the Field value, where the bytes are interpreted by using the specified decoder.
| decoder | The charset decoder used to interpret bytes as characters. |
Reimplemented in AMPS.Client.Fields.OptionsField.
|
inline |
Sets the value of this instance with the specified region of a byte buffer.
Note: the bytes are not copied from the buffer. The specified buffer region is referenced by this instance.
| v | The byte buffer. |
| offset | The starting position of the value in the byte buffer. |
| length | The length from the starting position of the value in the byte buffer. |
|
inline |
Sets the value of this instance from the specified command ID.
Note: the bytes are not copied from the buffer. The specified buffer region is referenced by this instance. This is not a deep copy.
| v | The command ID object whose value is used to set this instance. |
|
inline |
Sets the value of this instance from the specified string. The characters of the string are interpreted using the specified encoder. This method makes its own copy of the bytes.
| v | The string used as the value. |
| encoder | The encoder used to interpret the string's characters as bytes. |