ensure that the number is converted as bytes always in network byte order outputs.
NetworkByteOrderBuffer
01 Syntax
Microsoft.VisualBasic.Serialization.BinaryDumping.NetworkByteOrderBuffer
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ParseDouble | 2 | |
| Base64String | 1 | encode the given numeric data vector in network byte order and then returns the base64 encode string |
| GetBytes | 1 | make binary data encoding of a given numeric vector |
| ParseFloat | 1 | |
| ParseInteger | 1 | |
| ToFloat | 1 | |
| ToDouble | 1 |
03 Fields
04 Members
parse the given base64 string as the numeric vector
Parameters
| Name | Type | Description |
|---|---|---|
base64 | String | - |
zip | Compression | does the given base64 string is gzip compressed data? |
noMagic | Boolean | does the zip compression data has two byte of magic number, default is false which means it has the magic number |
Base64String(
IEnumerable(Of Double), Boolean)encode the given numeric data vector in network byte order and then returns the base64 encode string
Parameters
| Name | Type | Description |
|---|---|---|
data | IEnumerable(Of Double) | - |
GetBytes(
IEnumerable(Of Double))make binary data encoding of a given numeric vector
Remarks
a wrapper function of the NetworkByteOrderBuffer.encode
Parameters
| Name | Type | Description |
|---|---|---|
d | IEnumerable(Of Double) | - |
encode
encode the numeric vector as raw stream in network byte order
decode
decode the given raw stream as a numeric vector in network byte order
encode
decode
encode32
decode32
encodei32
decodei32
encodei16
decodei16
ParseFloat(
String, NetworkByteOrderBuffer+Compression, Boolean)ParseDouble(Byte())
ParseInteger(Byte())
ToFloat(Byte())
ToDouble(Byte())