AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.Fields.LongField Class Reference

Field data for a AMPS.Client.Message consisting of a long value. More...

+ Inheritance diagram for AMPS.Client.Fields.LongField:

Public Member Functions

long getValue ()
 Gets the value of this long field as a Java 64-bit signed integer. More...
 
void setValue (long v)
 Sets the value of this long field using the specified Java 64-bit signed integer. 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...
 

Static Protected Attributes

static byte LATIN1_ZERO = 48
 

Additional Inherited Members

- Public Attributes inherited from AMPS.Client.Fields.Field
byte[] buffer = null
 
int position = 0
 
int length = 0
 

Detailed Description

Field data for a AMPS.Client.Message consisting of a long value.

Member Function Documentation

◆ getValue()

long AMPS.Client.Fields.LongField.getValue ( )
inline

Gets the value of this long field as a Java 64-bit signed integer.

Returns
The value as a long.

◆ setValue()

void AMPS.Client.Fields.LongField.setValue ( long  v)
inline

Sets the value of this long field using the specified Java 64-bit signed integer.

Parameters
vThe int used to set the value.

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