BinHelpers Class
From RemObjects Software
This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.
Overview (.NET)
The BinHelpers class contains static methods used to aid in byte and streaming operations.
Namespace
Declaration (C#)
public class BinHelpers;
Hierarchy
- BinHelpers
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. |
| CopyBuffer | Copies the given source buffer byte array to the given destination buffer byte array for the given length. |
| CurrencyFromBuffer | Converts the given byte array to a decimal. |
| CurrencyToBuffer | Converts the given decimal to a byte array. |
| DateTimeToDelphiDate | Converts a DateTime to a double and 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. |
| 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. |
| Int16FromBuffer | Converts the given byte array to an int. |
| Int16ToBuffer | Converts the given int to a byte array. |
| Int32FromBigEndianBuffer | Converts the given big endian byte array to an Int32. |
| Int32FromBuffer | Converts the given byte array to an Int32. |
| Int32ToBigEndianBuffer | Converts the given Int32 to a big endian byte array. |
| Int32ToBuffer | Converts the given Int32 to a byte array. |
| Int64FromBuffer | Converts the given byte array to an Int64. |
| Int64ToBuffer | Converts the given Int64 to a byte array. |
| StringToAnsiStringBuffer | Converts the given String to a byte array in 8 bit ANSI format, using the current ANSI codepage. |
| StringToUtf8StringBuffer | Converts the given String to a byte array in UTF-8 format. |
| StringToWideStringBuffer | Converts the given String to a byte array in WideString format. |
| UnexpectedEndOfStream | Throws an exception indicating that the end of a stream was reached unexpectedly. |
| Utf8StringFromBuffer | Treats the given byte array as containing a UTF-8 encoded string and converts it to a string variable. |
| WideStringFromBuffer | Treats the given byte array as containing a 16 bit unicode WideString and converts it to a string variable. |
See Also
Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | RemObjects SDK | Architecture | Class | .NET
