Click or drag to resize

ValueConverter Class

Contains methods for converting byte arrays to values, values to byte arrays and values to other values.
Inheritance Hierarchy
SystemObject
  SampSharp.Core.CommunicationValueConverter

Namespace:  SampSharp.Core.Communication
Assembly:  SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static class ValueConverter

The ValueConverter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetBytes(Boolean)
Gets the bytes representing the specified value.
Public methodStatic memberGetBytes(Int32)
Gets the bytes representing the specified value.
Public methodStatic memberGetBytes(Single)
Gets the bytes representing the specified value.
Public methodStatic memberGetBytes(UInt16)
Gets the bytes representing the specified value.
Public methodStatic memberGetBytes(UInt32)
Gets the bytes representing the specified value.
Public methodStatic memberGetBytes(String, Encoding)
Gets the bytes representing the specified value.
Public methodStatic memberToBoolean(Int32)
Converts the specified value to a Boolean
Public methodStatic memberToBoolean(Byte, Int32)
Reads a Boolean from the specified buffer starting at the specified startIndex.
Public methodStatic memberToInt32(Boolean)
Converts the specified value to a Int32
Public methodStatic memberToInt32(Single)
Converts the specified value to a Int32
Public methodStatic memberToInt32(Byte, Int32)
Reads an Int32 from the specified buffer starting at the specified startIndex.
Public methodStatic memberToSingle(Int32)
Converts the specified value to a Single
Public methodStatic memberToSingle(Byte, Int32)
Reads a Single from the specified buffer starting at the specified startIndex.
Public methodStatic memberToString
Reads a String from the specified buffer starting at the specified startIndex.
Public methodStatic memberToUInt16
Reads an UInt16 from the specified buffer starting at the specified startIndex.
Public methodStatic memberToUint32
Converts the specified value to a UInt32
Public methodStatic memberToUInt32
Reads an UInt32 from the specified buffer starting at the specified startIndex.
Public methodStatic memberToVersion
Reads a Version from the specified buffer starting at the specified startIndex.
Top
See Also