Namespaces — Interfaces — Classes — Enums — Implements
Overview
The BinHelpers class contains static methods used to aid in byte and streaming operations.
Location
Constants
| FLAG_OBJECT_ASSIGNED
|
|
Oxygene: const FLAG_OBJECT_ASSIGNED: Byte
C#: const Byte FLAG_OBJECT_ASSIGNED
VB: Dim FLAG_OBJECT_ASSIGNED As Byte
|
| FLAG_OBJECT_UNASSIGNED
|
|
Oxygene: const FLAG_OBJECT_UNASSIGNED: Byte
C#: const Byte FLAG_OBJECT_UNASSIGNED
VB: Dim FLAG_OBJECT_UNASSIGNED As Byte
|
| SIZE_BYTE
|
|
Oxygene: const SIZE_BYTE: Int32
C#: const Int32 SIZE_BYTE
VB: Dim SIZE_BYTE As Int32
|
| SIZE_CURRENCY
|
|
Oxygene: const SIZE_CURRENCY: Int32
C#: const Int32 SIZE_CURRENCY
VB: Dim SIZE_CURRENCY As Int32
|
| SIZE_DOUBLE
|
|
Oxygene: const SIZE_DOUBLE: Int32
C#: const Int32 SIZE_DOUBLE
VB: Dim SIZE_DOUBLE As Int32
|
| SIZE_GUID
|
|
Oxygene: const SIZE_GUID: Int32
C#: const Int32 SIZE_GUID
VB: Dim SIZE_GUID As Int32
|
| SIZE_INT16
|
|
Oxygene: const SIZE_INT16: Int32
C#: const Int32 SIZE_INT16
VB: Dim SIZE_INT16 As Int32
|
| SIZE_INT32
|
|
Oxygene: const SIZE_INT32: Int32
C#: const Int32 SIZE_INT32
VB: Dim SIZE_INT32 As Int32
|
| SIZE_INT64
|
|
Oxygene: const SIZE_INT64: Int32
C#: const Int32 SIZE_INT64
VB: Dim SIZE_INT64 As Int32
|
Class Methods
| AnsiStringFromBuffer
|
|
Treats the given byte array as containing an 8 bit ANSI String and converts it to a string variable using the current ANSI codepage.
Oxygene: class method AnsiStringFromBuffer(buffer: array of Byte): String
C#: static String AnsiStringFromBuffer(array of Byte buffer)
VB: Shared Function AnsiStringFromBuffer(buffer As array of Byte) As String
Parameters:
|
| AnsiStringToBuffer
|
|
Oxygene: class method AnsiStringToBuffer(value: String): array of Byte
C#: static array of Byte AnsiStringToBuffer(String value)
VB: Shared Function AnsiStringToBuffer(value As String) As array of Byte
Parameters:
|
| CopyBuffer
|
|
Copies the given source buffer byte array to the given destination buffer byte array for the given length.
Oxygene: class method CopyBuffer(source: array of Byte; destination: array of Byte; sourceOffSet: Int32; destinationOffset: Int32; length: Int32)
C#: static void CopyBuffer(array of Byte source, array of Byte destination, Int32 sourceOffSet, Int32 destinationOffset, Int32 length)
VB: Shared Sub CopyBuffer(source As array of Byte, destination As array of Byte, sourceOffSet As Int32, destinationOffset As Int32, length As Int32)
Parameters:
- source:
- destination:
- sourceOffSet:
- destinationOffset:
- length:
|
| CurrencyFromBuffer
|
|
Converts the given byte array to a decimal.
Oxygene: class method CurrencyFromBuffer(buffer: array of Byte): Decimal
C#: static Decimal CurrencyFromBuffer(array of Byte buffer)
VB: Shared Function CurrencyFromBuffer(buffer As array of Byte) As Decimal
Parameters:
|
| CurrencyToBuffer
|
|
Converts the given decimal to a byte array.
Oxygene: class method CurrencyToBuffer(value: Decimal): array of Byte
C#: static array of Byte CurrencyToBuffer(Decimal value)
VB: Shared Function CurrencyToBuffer(value As Decimal) As array of Byte
Parameters:
|
| DateTimeToDelphiDate
|
|
Converts a DateTime to a double where the value represents the number of days that have passed since December 30th 1899 and the fractional part of the double represents a fraction of a 24 hour day.
Oxygene: class method DateTimeToDelphiDate(date: DateTime): Double
C#: static Double DateTimeToDelphiDate(DateTime date)
VB: Shared Function DateTimeToDelphiDate(date As DateTime) As Double
Parameters:
|
| DelphiDateToDateTime
|
|
Converts a double to a DateTime where the value of the given double represents the number of days that have passed since December 30th 1899 and the fractional part of the double represents a fraction of a 24 hour day.
Oxygene: class method DelphiDateToDateTime(date: Double): DateTime
C#: static DateTime DelphiDateToDateTime(Double date)
VB: Shared Function DelphiDateToDateTime(date As Double) As DateTime
Parameters:
|
| Int16FromBuffer
|
|
Converts the given byte array to an int.
Oxygene: class method Int16FromBuffer(buffer: array of Byte): Int32
C#: static Int32 Int16FromBuffer(array of Byte buffer)
VB: Shared Function Int16FromBuffer(buffer As array of Byte) As Int32
Parameters:
|
| Int16ToBuffer
|
|
Converts the given int to a byte array.
Oxygene: class method Int16ToBuffer(value: Int32): array of Byte
C#: static array of Byte Int16ToBuffer(Int32 value)
VB: Shared Function Int16ToBuffer(value As Int32) As array of Byte
Parameters:
|
| Int32FromBigEndianBuffer
|
|
Converts the given big endian byte array to an Int32.
Oxygene: class method Int32FromBigEndianBuffer(buffer: array of Byte): Int32
C#: static Int32 Int32FromBigEndianBuffer(array of Byte buffer)
VB: Shared Function Int32FromBigEndianBuffer(buffer As array of Byte) As Int32
Parameters:
|
| Int32FromBuffer
|
|
Converts the given byte array to an Int32.
Oxygene: class method Int32FromBuffer(buffer: array of Byte): Int32
C#: static Int32 Int32FromBuffer(array of Byte buffer)
VB: Shared Function Int32FromBuffer(buffer As array of Byte) As Int32
Parameters:
|
| Int32ToBigEndianBuffer
|
|
Converts the given Int32 to a big endian byte array.
Oxygene: class method Int32ToBigEndianBuffer(value: Int32; buffer: array of Byte)
C#: static void Int32ToBigEndianBuffer(Int32 value, array of Byte buffer)
VB: Shared Sub Int32ToBigEndianBuffer(value As Int32, buffer As array of Byte)
Parameters:
|
| Int32ToBuffer (Int32): array of Byte
|
|
Converts the given Int32 to a byte array.
Oxygene: class method Int32ToBuffer(value: Int32): array of Byte
C#: static array of Byte Int32ToBuffer(Int32 value)
VB: Shared Function Int32ToBuffer(value As Int32) As array of Byte
Parameters:
|
| Int32ToBuffer (Int32, array of Byte)
|
|
Oxygene: class method Int32ToBuffer(value: Int32; buffer: array of Byte)
C#: static void Int32ToBuffer(Int32 value, array of Byte buffer)
VB: Shared Sub Int32ToBuffer(value As Int32, buffer As array of Byte)
Parameters:
|
| Int64FromBuffer
|
|
Converts the given byte array to an Int64.
Oxygene: class method Int64FromBuffer(buffer: array of Byte): Int64
C#: static Int64 Int64FromBuffer(array of Byte buffer)
VB: Shared Function Int64FromBuffer(buffer As array of Byte) As Int64
Parameters:
|
| Int64ToBuffer
|
|
Converts the given Int64 to a byte array.
Oxygene: class method Int64ToBuffer(value: Int64): array of Byte
C#: static array of Byte Int64ToBuffer(Int64 value)
VB: Shared Function Int64ToBuffer(value As Int64) As array of Byte
Parameters:
|
| UnexpectedEndOfStream
|
|
Throws an exception indicating that the end of a stream was reached unexpectedly.
Oxygene: class method UnexpectedEndOfStream
C#: static void UnexpectedEndOfStream()
VB: Shared Sub UnexpectedEndOfStream
|
| Utf8StringFromBuffer
|
|
Treats the given byte array as containing a UTF-8 encoded string and converts it to a string variable.
Oxygene: class method Utf8StringFromBuffer(buffer: array of Byte): String
C#: static String Utf8StringFromBuffer(array of Byte buffer)
VB: Shared Function Utf8StringFromBuffer(buffer As array of Byte) As String
Parameters:
|
| Utf8StringToBuffer
|
|
Oxygene: class method Utf8StringToBuffer(value: String): array of Byte
C#: static array of Byte Utf8StringToBuffer(String value)
VB: Shared Function Utf8StringToBuffer(value As String) As array of Byte
Parameters:
|
| WideStringFromBuffer
|
|
Treats the given byte array as containing a 16 bit unicode WideString and converts it to a string variable.
Oxygene: class method WideStringFromBuffer(buffer: array of Byte): String
C#: static String WideStringFromBuffer(array of Byte buffer)
VB: Shared Function WideStringFromBuffer(buffer As array of Byte) As String
Parameters:
|
| WideStringToBuffer
|
|
Oxygene: class method WideStringToBuffer(value: String): array of Byte
C#: static array of Byte WideStringToBuffer(String value)
VB: Shared Function WideStringToBuffer(value As String) As array of Byte
Parameters:
|
See Also
Glossary — Articles — Library — Samples