WAX Unity Web3 Suite
EosSharp
EosSharp
  • Getting Started
  • Installation
  • Examples
    • Configuration
    • Create Transaction
    • CustomSignProvider
    • CombinedSignersProvider
  • API Docs
    • API Read Methods
      • GetInfo
      • GetAccount
      • GetBlock
      • GetTableRows
      • GetTableByScope
    • Eos
    • HttpHandler
    • Core
      • Api.v1
        • Abi
        • AbiAction
        • AbiBinToJsonRequest
        • AbiBinToJsonResponse
        • AbiField
        • AbiJsonToBinRequest
        • AbiJsonToBinResponse
        • AbiRicardianClause
        • AbiStruct
        • AbiTable
        • AbiType
        • Action
        • ActionTrace
        • ActivedProtocolFeatures
        • Authority
        • AuthorityAccount
        • AuthorityKey
        • AuthorityWait
        • BlockHeader
        • CurrencyStat
        • DetailedTransaction
        • EosApi
        • ExtendedAsset
        • Extension
        • GetAbiRequest
        • GetAbiResponse
        • GetAccountRequest
        • GetAccountResponse
        • GetActionsRequest
        • GetActionsResponse
        • GetBlockHeaderStateRequest
        • GetBlockHeaderStateResponse
        • GetBlockRequest
        • GetBlockResponse
        • GetCodeRequest
        • GetCodeResponse
        • GetControlledAccountsRequest
        • GetControlledAccountsResponse
        • GetCurrencyBalanceRequest
        • GetCurrencyBalanceResponse
        • GetCurrencyStatsRequest
        • GetCurrencyStatsResponse
        • GetInfoResponse
        • GetKeyAccountsRequest
        • GetKeyAccountsResponse
        • GetProducerScheduleResponse
        • GetProducersRequest
        • GetProducersResponse
        • GetRawAbiRequest
        • GetRawAbiResponse
        • GetRawCodeAndAbiRequest
        • GetRawCodeAndAbiResponse
        • GetRequiredKeysRequest
        • GetRequiredKeysResponse
        • GetScheduledTransactionsRequest
        • GetScheduledTransactionsResponse
        • GetTableByScopeRequest
        • GetTableByScopeResponse
        • GetTableRowsRequest
        • GetTableRowsResponse
        • GetTransactionRequest
        • GetTransactionResponse
        • GlobalAction
        • Merkle
        • PackedTransaction
        • Permission
        • PermissionLevel
        • ProcessedTransaction
        • Producer
        • PushTransactionRequest
        • PushTransactionResponse
        • Receipt
        • RefundRequest
        • Resource
        • Schedule
        • ScheduleProducers
        • ScheduledTransaction
        • SelfDelegatedBandwidth
        • SignedBlockHeader
        • Symbol
        • TableByScopeResultRow
        • TotalResources
        • Transaction
        • TransactionReceipt
        • Variant
        • VoterInfo
      • DataAttributes
        • AbiFieldTypeAttribute
      • EosBase
      • EosConfigurator
      • Exceptions
        • ApiError
        • ApiErrorDetail
        • ApiErrorException
        • ApiException
      • Helpers
        • CryptoHelper
          • KeyPair
        • SerializationHelper
      • Interfaces
        • IHttpHandler
        • ISignProvider
      • EosSharp
        • AbiSerializationProvider
        • CombinedSignersProvider
        • DefaultSignProvider
        • IAbiSerializationProvider
      • SignedTransaction
Powered by GitBook
On this page
  • Summary
  • Members
Edit on GitHub
  1. API Docs
  2. Core
  3. Helpers

SerializationHelper

Summary

Members
Descriptions

Is a big Number negative.

Negate a big number.

Convert an unsigned decimal number as string to a big number.

Convert an signed decimal number as string to a big number.

Convert big number to an unsigned decimal number.

Convert big number to an signed decimal number.

Convert base64 with fc prefix to byte array.

Convert ascii char to symbol value.

Convert snake case string to pascal case.

Convert pascal case string to snake case.

Serialize object to byte array.

Encode byte array to hexadecimal string.

Decode hexadecimal string to byte array.

Serialize object to hexadecimal encoded string.

Combina multiple arrays into one.

Convert DateTime to time_point (miliseconds since epoch)

Convert time_point (miliseconds since epoch) to DateTime.

Convert DateTime to time_point_sec (seconds since epoch)

Convert time_point_sec (seconds since epoch) to DateTime.

Convert DateTime to block_timestamp_type (half-seconds since a different epoch)

Convert block_timestamp_type (half-seconds since a different epoch) to DateTime.

Convert Name into unsigned long.

Convert Name into bytes.

It takes a string of hexadecimal digits and reverses the order of the bytes.

Convert uint64_t into EOSIO name.

Members

Is a big Number negative.

Parameters

  • bin big number in byte array

Returns

Negate a big number.

Parameters

  • bin big number in byte array

Convert an unsigned decimal number as string to a big number.

Parameters

  • size Size in bytes of the big number

  • s decimal encoded as string

Returns

Convert an signed decimal number as string to a big number.

Parameters

  • size Size in bytes of the big number

  • s decimal encoded as string

Returns

Convert big number to an unsigned decimal number.

Parameters

  • bin big number as byte array

  • minDigits 0-pad result to this many digits

Returns

Convert big number to an signed decimal number.

Parameters

  • bin big number as byte array

  • minDigits 0-pad result to this many digits

Returns

Convert base64 with fc prefix to byte array.

Parameters

  • s string to convert

Returns

Convert ascii char to symbol value.

Parameters

  • c

Returns

Convert snake case string to pascal case.

Parameters

  • s string to convert

Returns

Convert pascal case string to snake case.

Parameters

  • s string to convert

Returns

Serialize object to byte array.

Parameters

  • obj object to serialize

Returns

Encode byte array to hexadecimal string.

Parameters

  • ba byte array to convert

Returns

Decode hexadecimal string to byte array.

Parameters

  • hex

Returns

Serialize object to hexadecimal encoded string.

Parameters

  • obj

Returns

Combina multiple arrays into one.

Parameters

  • arrays

Returns

Convert DateTime to time_point (miliseconds since epoch)

Parameters

  • value date to convert

Returns

Convert time_point (miliseconds since epoch) to DateTime.

Parameters

  • ticks time_point ticks to convert

Returns

Convert DateTime to time_point_sec (seconds since epoch)

Parameters

  • value date to convert

Returns

Convert time_point_sec (seconds since epoch) to DateTime.

Parameters

  • secs time_point_sec to convert

Returns

Convert DateTime to block_timestamp_type (half-seconds since a different epoch)

Parameters

  • value date to convert

Returns

Convert block_timestamp_type (half-seconds since a different epoch) to DateTime.

Parameters

  • slot block_timestamp slot to convert

Returns

Convert Name into unsigned long.

Parameters

  • name

Returns

Converted value

Convert Name into bytes.

Parameters

  • name

Returns

Converted value bytes

It takes a string of hexadecimal digits and reverses the order of the bytes.

Parameters

  • h The hex string to reverse.

Returns

The hex value is being reversed.

Convert uint64_t into EOSIO name.

Parameters

  • binary

Returns

EOSIO Name

PreviousKeyPairNextInterfaces

Last updated 2 years ago

public static bool (byte[] bin)

public static void (byte[] bin)

public static byte[] (uint size, string s)

public static byte[] (uint size, string s)

public static string (byte[] bin, int minDigits)

public static string (byte[] bin, int minDigits)

public static byte[] (string s)

public static byte (char c)

public static string (string s)

public static string (string s)

public static byte[] (object obj)

public static string (byte[] ba)

public static byte[] (string hex)

public static string (object obj)

public static byte[] (IEnumerable< byte[]> arrays)

public static UInt64 (DateTime value)

public static DateTime (long ticks)

public static UInt32 (DateTime value)

public static DateTime (UInt32 secs)

public static UInt32 (DateTime value)

public static DateTime (UInt32 slot)

public static UInt64 (string name)

public static byte[] (string name)

public static string (string h)

public static string (ulong binary)

public static bool (byte[] bin)

public static void (byte[] bin)

public static byte[] (uint size, string s)

public static byte[] (uint size, string s)

public static string (byte[] bin, int minDigits)

public static string (byte[] bin, int minDigits)

public static byte[] (string s)

public static byte (char c)

public static string (string s)

public static string (string s)

public static byte[] (object obj)

public static string (byte[] ba)

public static byte[] (string hex)

public static string (object obj)

public static byte[] (IEnumerable< byte[]> arrays)

public static UInt64 (DateTime value)

public static DateTime (long ticks)

public static UInt32 (DateTime value)

public static DateTime (UInt32 secs)

public static UInt32 (DateTime value)

public static DateTime (UInt32 slot)

public static UInt64 (string name)

public static byte[] (string name)

public static string (string h)

public static string (ulong binary)

IsNegative
Negate
DecimalToBinary
SignedDecimalToBinary
BinaryToDecimal
SignedBinaryToDecimal
Base64FcStringToByteArray
CharToSymbol
SnakeCaseToPascalCase
PascalCaseToSnakeCase
ObjectToByteArray
ByteArrayToHexString
HexStringToByteArray
ObjectToHexString
Combine
DateToTimePoint
TimePointToDate
DateToTimePointSec
TimePointSecToDate
DateToBlockTimestamp
BlockTimestampToDate
ConvertNameToLong
ConvertNameToBytes
ReverseHex
ConvertULongToName
IsNegative
Negate
DecimalToBinary
SignedDecimalToBinary
BinaryToDecimal
SignedBinaryToDecimal
Base64FcStringToByteArray
CharToSymbol
SnakeCaseToPascalCase
PascalCaseToSnakeCase
ObjectToByteArray
ByteArrayToHexString
HexStringToByteArray
ObjectToHexString
Combine
DateToTimePoint
TimePointToDate
DateToTimePointSec
TimePointSecToDate
DateToBlockTimestamp
BlockTimestampToDate
ConvertNameToLong
ConvertNameToBytes
ReverseHex
ConvertULongToName