GetBytes()
BitConverter::GetBytes(bool) method
Converts the specified boolean value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(bool value)
Arguments
Parameter | Type | Description |
---|---|---|
value | bool | A boolean value to convert |
Return Value
1-byte array representing specified value
BitConverter::GetBytes(char_t) method
Converts the specified char_t value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(char_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | char_t | A char_t value to convert |
Return Value
2-byte array representing specified value
BitConverter::GetBytes(int16_t) method
Converts the specified 16-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(int16_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | int16_t | A 16-bit integer value to convert |
Return Value
2-byte array representing specified value
BitConverter::GetBytes(int) method
Converts the specified 32-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(int value)
Arguments
Parameter | Type | Description |
---|---|---|
value | int | A 32-bit integer value to convert |
Return Value
4-byte array representing specified value
BitConverter::GetBytes(int64_t) method
Converts the specified 64-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(int64_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | int64_t | A 64-bit integer value to convert |
Return Value
8-byte array representing specified value
BitConverter::GetBytes(uint16_t) method
Converts the specified unsigned 16-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(uint16_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | uint16_t | An unsigned 16-bit integer value to convert |
Return Value
2-byte array representing specified value
BitConverter::GetBytes(uint32_t) method
Converts the specified unsigned 32-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(uint32_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | uint32_t | An unsigned 32-bit integer value to convert |
Return Value
4-byte array representing specified value
BitConverter::GetBytes(uint64_t) method
Converts the specified unsigned 64-bit integer value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(uint64_t value)
Arguments
Parameter | Type | Description |
---|---|---|
value | uint64_t | An unsigned 64-bit integer value to convert |
Return Value
8-byte array representing specified value
BitConverter::GetBytes(float) method
Converts the specified single-precision floating-point value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(float value)
Arguments
Parameter | Type | Description |
---|---|---|
value | float | A floating-point value to convert |
Return Value
4-byte array representing specified value
BitConverter::GetBytes(double) method
Converts the specified double-precision floating-point value into an array of bytes.
static System::ArrayPtr<uint8_t> System::BitConverter::GetBytes(double value)
Arguments
Parameter | Type | Description |
---|---|---|
value | double | A floating-point value to convert |
Return Value
8-byte array representing specified value
See Also
- Typedef ArrayPtr
- Class BitConverter
- Namespace System
- Library Aspose.Slides