• Reference
Show / Hide Table of Contents
  • Xrpl.AddressCodec
    • AddressCodecException
    • B58
    • B58.Decoded
    • B58.Version
    • B58.Versions
    • EncodingFormatException
    • KeypairException
    • Utils
    • XrplAddressCodec
    • XrplAddressCodec.CodecAccountID
    • XrplAddressCodec.CodecAddress
    • XrplCodec
    • XrplCodec.DecodedSeed
  • Xrpl.BinaryCodec
    • BinaryCodecException
    • ExtenstionHelpers
    • ExtenstionHelpers.NumFunc
    • ISerializedType
    • StExtensions
    • XrplBinaryCodec
  • Xrpl.BinaryCodec.Binary
    • BinaryParser
    • BinarySerializer
    • BufferParser
    • BytesList
    • IBytesSink
    • StreamParser
  • Xrpl.BinaryCodec.Enums
    • AccountIdField
    • AmountField
    • BlobField
    • EngineResultField
    • Enumeration<T>
    • EnumItem
    • Field
    • FieldType
    • FromJson
    • FromParser
    • Hash128Field
    • Hash160Field
    • Hash256Field
    • LedgerEntryTypeField
    • PathSetField
    • SerializedEnumeration<TEnum, TOrd>
    • SerializedEnumItem<TOrd>
    • StArrayField
    • StObjectField
    • TransactionTypeField
    • Uint16Field
    • Uint32Field
    • Uint64Field
    • Uint8Field
    • Vector256Field
  • Xrpl.BinaryCodec.Hashing
    • HashPrefix
    • Sha512
  • Xrpl.BinaryCodec.Ledger
    • LedgerHeader
  • Xrpl.BinaryCodec.ShaMapTree
    • AccountState
    • ILeafWalker
    • IShaMapItem<T>
    • ITreeWalker
    • LedgerEntry
    • LedgerEntryReader
    • OnLeaf
    • PathToIndex
    • ShaMap
    • ShaMapDiff
    • ShaMapInner
    • ShaMapLeaf
    • ShaMapNode
    • TransactionResult
    • TransactionResultReader
    • TransactionTree
    • TreeWalker
  • Xrpl.BinaryCodec.Transactions
    • TxFormat
    • TxFormat.Requirement
    • TxFormatValidationException
  • Xrpl.BinaryCodec.Types
    • AccountId
    • Amount
    • AmountValue
    • Blob
    • Currency
    • EngineResult
    • EngineResult.EngineResultValues
    • Hash
    • Hash128
    • Hash160
    • Hash256
    • InvalidAmountValueException
    • InvalidJsonException
    • IouValue
    • Issue
    • LedgerEntryType
    • LedgerEntryType.Enumeration
    • Path
    • PathHop
    • PathSet
    • PrecisionException
    • StArray
    • StObject
    • StReader
    • TransactionType
    • TransactionType.Enumeration
    • Uint<T>
    • Uint16
    • Uint32
    • Uint64
    • Uint8
    • Vector256
  • Xrpl.BinaryCodec.Util
    • B16
    • Bits
    • ChannelUtils
  • Xrpl.Client
    • connection
    • connection.ConnectionOptions
    • connection.Trace
    • IXrplClient
    • OnConsensusStreamResponse
    • OnErrorResponse
    • OnLedgerStreamResponse
    • OnPathFindStream
    • OnPeerStatusStreamResponse
    • OnRippleResponse
    • OnTransactionStreamResponse
    • OnValidationsStreamResponse
    • XrplClient
  • Xrpl.Client.Exceptions
    • ConnectionError
    • DisconnectedError
    • NotConnectedError
    • NotFoundError
    • ResponseFormatError
    • RippledError
    • RippledNotInitializedError
    • RippleException
    • TimeoutError
    • UnexpectedError
    • ValidationException
    • XrplError
    • XRPLFaucetError
  • Xrpl.Client.Extensions
    • EmumExtensions
    • EnumerableExtensions
    • ExtensionHelpers
  • Xrpl.Client.Json.Converters
    • CurrencyConverter
    • GenericStringConverter<T>
    • LedgerBinaryConverter
    • LedgerIndexConverter
    • LOConverter
    • MetaBinaryConverter
    • RippleDateTimeConverter
    • StringOrArrayConverter
    • TransactionConverter
    • TransactionOrHashConverter
  • Xrpl.Keypairs
    • IXrplKeyPair
    • KeyPairExtensions
    • rKeypair
    • XrplKeypairs
  • Xrpl.Keypairs.Ed25519
    • EdKeyPair
  • Xrpl.Keypairs.K256
    • EcdsaSignature
    • K256KeyGenerator
    • K256KeyPair
    • Secp256K1
  • Xrpl.Keypairs.Utils
    • Sha512
  • Xrpl.Models
    • LedgerEntryType
    • StreamType
    • TransactionType
  • Xrpl.Models.Common
    • Common
    • Common.IssuedCurrency
    • Common.IssuedCurrencyAmount
    • Common.XRP
    • Currency
    • LedgerIndex
  • Xrpl.Models.Ledger
    • AccountRootFlags
    • BaseLedgerEntity
    • BaseLedgerEntry
    • EnableAmendmentFlags
    • HashOrTransaction
    • LedgerBinaryEntity
    • LedgerDataBinaryOrJson
    • LedgerEntity
    • LedgerIndexType
    • LOAccountRoot
    • LOAmendments
    • LOBaseLedger
    • LOCheck
    • LODepositPreauth
    • LODirectoryNode
    • LOEscrow
    • LOFeeSettings
    • LOLedger
    • LOLedgerCurrentIndex
    • LOLedgerData
    • LOLedgerEntry
    • LOLedgerHashes
    • LOOffer
    • LOPayChannel
    • LORippleState
    • LOSignerList
    • LOTicket
    • Majority
    • QueuedTransaction
    • RippleStateFlags
    • SignerEntry
  • Xrpl.Models.Methods
    • AccountChannels
    • AccountChannelsRequest
    • AccountCurrencies
    • AccountCurrenciesRequest
    • AccountInfo
    • AccountInfoRequest
    • AccountingStateInfo
    • AccountingStateSummary
    • AccountLines
    • AccountLinesRequest
    • AccountNFTs
    • AccountNFTsRequest
    • AccountObjects
    • AccountObjectsRequest
    • AccountOffers
    • AccountOffersRequest
    • AccountTransaction
    • AccountTransactions
    • AccountTransactionsRequest
    • BaseLedgerRequest
    • BookCurrency
    • BookOffersRequest
    • Channel
    • ChannelAuthorizeRequest
    • ChannelVerifyRequest
    • Drops
    • Fee
    • FeeRequest
    • GatewayBalances
    • GatewayBalancesRequest
    • Info
    • JobType
    • LastClose
    • LedgerClosedRequest
    • LedgerCurrentRequest
    • LedgerDataRequest
    • LedgerEntryRequest
    • LedgerEntryRequestType
    • LedgerRequest
    • Levels
    • Load
    • NFT
    • NFTBuyOffers
    • NFTBuyOffersRequest
    • NFTOffer
    • NFTSellOffers
    • NFTSellOffersRequest
    • NoRippleCheck
    • NoRippleCheckRequest
    • Offer
    • Path
    • PingRequest
    • QueueData
    • RandomRequest
    • RippleRequest
    • RippleState
    • RoleType
    • ServerInfo
    • ServerInfoRequest
    • ServerState
    • SubmitRequest
    • SubscribeBase
    • SubscribeBook
    • SubscribeRequest
    • TakerAmount
    • TransactionSummary
    • TrustLine
    • TxRequest
    • UnsubscribeRequest
    • ValidatedLedger
  • Xrpl.Models.Subscriptions
    • AlternativePath
    • BaseResponse
    • BaseStreamResponseResult
    • ConsensusStreamResponseResult
    • ErrorResponse
    • LedgerStreamResponseResult
    • OrderBookStreamResponseResult
    • PathFindStreamResult
    • PeerStatusStreamResponseResult
    • ResponseStreamType
    • RippleResponseWarning
    • TransactionStreamResponseResult
    • ValidationsStreamResponseResult
    • WarningDetails
  • Xrpl.Models.Transaction
    • AccountDelete
    • AccountDeleteResponse
    • AccountSet
    • AccountSetResponse
    • AccountSetTfFlags
    • AffectedNode
    • BaseTransactionResponse
    • BinaryTransaction
    • BinaryTransactionResponse
    • BookOffers
    • CheckCancel
    • CheckCancelResponse
    • CheckCash
    • CheckCashResponse
    • CheckCreate
    • CheckCreateResponse
    • Common
    • DepositPreauth
    • DepositPreauthResponse
    • EscrowCancel
    • EscrowCancelResponse
    • EscrowCreate
    • EscrowCreateResponse
    • EscrowFinish
    • EscrowFinishResponse
    • IAccountDelete
    • IAccountSet
    • IBaseTransactionResponse
    • ICheckCancel
    • ICheckCash
    • ICheckCreate
    • IDepositPreauth
    • IEscrowCancel
    • IEscrowCreate
    • IEscrowFinish
    • INFTokenAcceptOffer
    • INFTokenBurn
    • INFTokenCancelOffer
    • INFTokenCreateOffer
    • INFTokenMint
    • IOfferCancel
    • IOfferCreate
    • IPayment
    • IPaymentChannelClaim
    • IPaymentChannelCreate
    • IPaymentChannelFund
    • ISetRegularKey
    • ISignerListSet
    • ITicketCreate
    • ITransactionCommon
    • ITransactionResponseCommon
    • ITrustSet
    • Memo
    • MemoWrapper
    • Meta
    • NFTokenAcceptOffer
    • NFTokenAcceptOfferResponse
    • NFTokenBurn
    • NFTokenBurnResponse
    • NFTokenCancelOffer
    • NFTokenCancelOfferResponse
    • NFTokenCreateOffer
    • NFTokenCreateOfferFlags
    • NFTokenCreateOfferResponse
    • NFTokenMint
    • NFTokenMintFlags
    • NFTokenMintResponse
    • NodeInfo
    • Offer
    • OfferCancel
    • OfferCancelResponse
    • OfferCreate
    • OfferCreateFlags
    • OfferCreateResponse
    • OfferFlags
    • Payment
    • PaymentChannelClaim
    • PaymentChannelClaimFlags
    • PaymentChannelClaimResponse
    • PaymentChannelCreate
    • PaymentChannelCreateResponse
    • PaymentChannelFund
    • PaymentChannelFundResponse
    • PaymentFlags
    • PaymentResponse
    • SetRegularKey
    • SetRegularKeyResponse
    • Signer
    • SignerListSet
    • SignerListSetResponse
    • Submit
    • TicketCreate
    • TicketCreateResponse
    • TransactionCommon
    • TransactionResponseCommon
    • TrustSet
    • TrustSetFlags
    • TrustSetResponse
  • Xrpl.Models.Utils
    • EmptyClass
    • Flags
  • Xrpl.Sugar
    • AutofillSugar
    • AutofillSugar.AddressNTag
    • BalancesSugar
    • GetFeeXrpSugar
    • GetLedgerSugar
    • SubmitSugar
  • Xrpl.Utils
    • BigIntegerExtensions
    • Derive
    • GetBalanceChanges
    • ParseNFTID
    • Quality
    • SignPaymentChannelClaim
    • StringConversion
    • TimeConversion
    • VerifyPaymentChannelClaim
    • XrpConversion
  • Xrpl.Utils.Hashes
    • Hashes
    • HashLedger
    • LedgerSpaces
    • rHashPrefix
    • Sha512Half
  • Xrpl.Utils.Hashes.ShaMap
    • InnerNode
    • LeafNode
    • Node
    • SHAMap
  • Xrpl.Wallet
    • EasyTimer
    • SignatureResult
    • Signer
    • WalletSugar
    • WalletSugar.FaucetAccount
    • WalletSugar.FaucetNetwork
    • WalletSugar.FaucetWallet
    • WalletSugar.Funded
    • XrplWallet

Class Bits

Converts base data types to an array of bytes, and an array of bytes to base data types. All info taken from the meta data of System.BitConverter. This implementation allows for Endianness consideration.

Inheritance
System.Object
Bits
Namespace: Xrpl.BinaryCodec.Util
Assembly: Xrpl.BinaryCodec.dll
Syntax
public static class Bits : object

Properties

| Improve this Doc View Source

IsLittleEndian

Indicates the byte order ("endianess") in which data is stored in this computer architecture.

Declaration
public static bool IsLittleEndian { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

DoubleToInt64Bits(Double)

Converts the specified double-precision floating point number to a 64-bit signed integer.

Parameters: value: The number to convert.

Returns: A 64-bit signed integer whose value is equivalent to value.

Declaration
public static long DoubleToInt64Bits(double value)
Parameters
Type Name Description
System.Double value
Returns
Type Description
System.Int64
| Improve this Doc View Source

GetBytes(Boolean)

Returns the specified Boolean value as an array of bytes.

Parameters: value: A Boolean value.

Returns: An array of bytes with length 1.

Declaration
public static byte[] GetBytes(bool value)
Parameters
Type Name Description
System.Boolean value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Byte)

Declaration
public static byte[] GetBytes(byte value)
Parameters
Type Name Description
System.Byte value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Char)

Returns the specified Unicode character value as an array of bytes.

Parameters: value: A character to convert.

Returns: An array of bytes with length 2.

Declaration
public static byte[] GetBytes(char value)
Parameters
Type Name Description
System.Char value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Double)

Returns the specified double-precision floating point value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 8.

Declaration
public static byte[] GetBytes(double value)
Parameters
Type Name Description
System.Double value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Int16)

Returns the specified 16-bit signed integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 2.

Declaration
public static byte[] GetBytes(short value)
Parameters
Type Name Description
System.Int16 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Int32)

Returns the specified 32-bit signed integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 4.

Declaration
public static byte[] GetBytes(int value)
Parameters
Type Name Description
System.Int32 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Int64)

Returns the specified 64-bit signed integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 8.

Declaration
public static byte[] GetBytes(long value)
Parameters
Type Name Description
System.Int64 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(Single)

Returns the specified single-precision floating point value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 4.

Declaration
public static byte[] GetBytes(float value)
Parameters
Type Name Description
System.Single value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(UInt16)

Returns the specified 16-bit unsigned integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 2.

Declaration
public static byte[] GetBytes(ushort value)
Parameters
Type Name Description
System.UInt16 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(UInt32)

Returns the specified 32-bit unsigned integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 4.

Declaration
public static byte[] GetBytes(uint value)
Parameters
Type Name Description
System.UInt32 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GetBytes(UInt64)

Returns the specified 64-bit unsigned integer value as an array of bytes.

Parameters: value: The number to convert.

Returns: An array of bytes with length 8.

Declaration
public static byte[] GetBytes(ulong value)
Parameters
Type Name Description
System.UInt64 value
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

Int64BitsToDouble(Int64)

Converts the specified 64-bit signed integer to a double-precision floating point number.

Parameters: value: The number to convert.

Returns: A double-precision floating point number whose value is equivalent to value.

Declaration
public static double Int64BitsToDouble(long value)
Parameters
Type Name Description
System.Int64 value
Returns
Type Description
System.Double
| Improve this Doc View Source

ToBoolean(Byte[], Int32)

Returns a Boolean value converted from one byte at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: true if the byte at startIndex in value is nonzero; otherwise, false.

Exceptions: System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static bool ToBoolean(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ToChar(Byte[], Int32)

Returns a Unicode character converted from two bytes at a specified position in a byte array.

Parameters: value: An array.

startIndex: The starting position within value.

Returns: A character formed by two bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex equals the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static char ToChar(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Char
| Improve this Doc View Source

ToDouble(Byte[], Int32)

Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A double precision floating point number formed by eight bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static double ToDouble(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Double
| Improve this Doc View Source

ToInt16(Byte[], Int32)

Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A 16-bit signed integer formed by two bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex equals the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static short ToInt16(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Int16
| Improve this Doc View Source

ToInt32(Byte[], Int32)

Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A 32-bit signed integer formed by four bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static int ToInt32(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Int32
| Improve this Doc View Source

ToInt64(Byte[], Int32)

Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A 64-bit signed integer formed by eight bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static long ToInt64(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Int64
| Improve this Doc View Source

ToSingle(Byte[], Int32)

Returns a single-precision floating point number converted from four bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A single-precision floating point number formed by four bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static float ToSingle(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.Single
| Improve this Doc View Source

ToString(Byte[])

Converts the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation.

Parameters: value: An array of bytes.

Returns: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in value; for example, "7F-2C-4A".

Exceptions: System.ArgumentNullException: value is null.

Declaration
public static string ToString(byte[] value)
Parameters
Type Name Description
System.Byte[] value
Returns
Type Description
System.String
| Improve this Doc View Source

ToString(Byte[], Int32)

Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in a subarray of value; for example, "7F-2C-4A".

Exceptions: System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static string ToString(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.String
| Improve this Doc View Source

ToString(Byte[], Int32, Int32)

Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

length: The number of array elements in value to convert.

Returns: A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in a subarray of value; for example, "7F-2C-4A".

Exceptions: System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex or length is less than zero. -or- startIndex is greater than zero and is greater than or equal to the length of value.

System.ArgumentException: The combination of startIndex and length does not specify a position within value; that is, the startIndex parameter is greater than the length of value minus the length parameter.

Declaration
public static string ToString(byte[] value, int startIndex, int length)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
System.Int32 length
Returns
Type Description
System.String
| Improve this Doc View Source

ToUInt16(Byte[], Int32)

Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.

Parameters: value: The array of bytes.

startIndex: The starting position within value.

Returns: A 16-bit unsigned integer formed by two bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex equals the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static ushort ToUInt16(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.UInt16
| Improve this Doc View Source

ToUInt32(Byte[], Int32)

Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A 32-bit unsigned integer formed by four bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static uint ToUInt32(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.UInt32
| Improve this Doc View Source

ToUInt64(Byte[], Int32)

Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array.

Parameters: value: An array of bytes.

startIndex: The starting position within value.

Returns: A 64-bit unsigned integer formed by the eight bytes beginning at startIndex.

Exceptions: System.ArgumentException: startIndex is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.

System.ArgumentNullException: value is null.

System.ArgumentOutOfRangeException: startIndex is less than zero or greater than the length of value minus 1.

Declaration
public static ulong ToUInt64(byte[] value, int startIndex)
Parameters
Type Name Description
System.Byte[] value
System.Int32 startIndex
Returns
Type Description
System.UInt64
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX