Click or drag to resize
PackedInt16 Structure
Represents a 16-bit signed integer value composed of smaller integer values.

Namespace: CodeTiger
Assembly: CodeTiger.Core (in CodeTiger.Core.dll) Version: 1.0.0.0
Syntax
public struct PackedInt16

The PackedInt16 type exposes the following members.

Constructors
  NameDescription
Public methodPackedInt16(Byte)
Initializes a new instance of the PackedInt16 structure to the packed value of an array of two Byte values.
Public methodPackedInt16(Int16)
Initializes a new instance of the PackedInt16 structure to a specified packed value.
Public methodPackedInt16(Byte, Byte)
Initializes a new instance of the PackedInt16 structure to the packed value of two Byte values.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether this PackedInt16 value is equal to another object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(PackedInt16)
Determines whether this PackedInt16 value is equal to another PackedInt16 value.
Public methodGetByteValues
Gets the individual Byte values that make up this 16-bit value.
Public methodGetHashCode
Returns a hash code for this value.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToInt16
Converts the value of this PackedInt16 value to an equivalent Int16 value.
Public methodToString
Converts this PackedInt16 value to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts this PackedInt16 value to its equivalent string representation using provided culture-specific format information.
Public methodToString(String)
Converts this PackedInt16 value to its equivalent string representation using a specified format.
Public methodToString(String, IFormatProvider)
Converts this PackedInt16 value to its equivalent string representation using a specified format and provided culture-specific format information.
Public methodWithLowerByte
Returns a new PackedInt16 value equivalent to this instance with its lower 8 bits set to a given Byte value.
Public methodWithUpperByte
Returns a new PackedInt16 value equivalent to this instance with its upper 8 bits set to a given Byte value.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two PackedInt16 values are equal.
Public operatorStatic member(Int16 to PackedInt16)
Defines an implicit conversion of an Int16 value to a PackedInt16 value.
Public operatorStatic member(PackedInt16 to Int16)
Defines an implicit conversion of a PackedInt16 value to an Int16 value.
Public operatorStatic memberInequality
Determines whether two PackedInt16 values are not equal.
Top
Properties
  NameDescription
Public propertyLowerByte
Gets the Byte value from the lower 8 bits of this 16-bit value.
Public propertyUpperByte
Gets the Byte value from the upper 8 bits of this 16-bit value.
Public propertyValue
Gets the underlying Int16 value.
Top
See Also