C# Class Library.NetworkConverter

显示文件 Open project: Alliance-Network/Library Class Usage Examples

Public Methods

Method Description
FromBase64UrlString ( string value ) : byte[]
FromHexString ( string value ) : byte[]

16進数表記の文字列をバイト列に変換

FromSizeString ( string value ) : decimal
GetBytes ( bool value ) : byte[]
GetBytes ( char value ) : byte[]
GetBytes ( double value ) : byte[]
GetBytes ( float value ) : byte[]
GetBytes ( int value ) : byte[]
GetBytes ( long value ) : byte[]
GetBytes ( short value ) : byte[]
GetBytes ( uint value ) : byte[]
GetBytes ( ulong value ) : byte[]
GetBytes ( ushort value ) : byte[]
ToBase64UrlString ( byte value ) : string
ToBase64UrlString ( byte value, int offset, int length ) : string
ToBoolean ( byte value ) : bool
ToBoolean ( byte value, int offset ) : bool
ToChar ( byte value ) : char
ToChar ( byte value, int offset ) : char
ToDouble ( byte value ) : double
ToDouble ( byte value, int offset ) : double
ToHexString ( byte value ) : string

バイト列を16進数表記の文字列に変換

ToHexString ( byte value, int offset, int length ) : string

バイト列を16進数表記の文字列に変換

ToInt16 ( byte value ) : short
ToInt16 ( byte value, int offset ) : short
ToInt32 ( byte value ) : int
ToInt32 ( byte value, int offset ) : int
ToInt64 ( byte value ) : long
ToInt64 ( byte value, int offset ) : long
ToSingle ( byte value ) : float
ToSingle ( byte value, int offset ) : float
ToSizeString ( decimal b ) : string
ToSizeString ( decimal b, string unit ) : string
ToUInt16 ( byte value ) : ushort
ToUInt16 ( byte value, int offset ) : ushort
ToUInt32 ( byte value ) : uint
ToUInt32 ( byte value, int offset ) : uint
ToUInt64 ( byte value ) : ulong
ToUInt64 ( byte value, int offset ) : ulong

Private Methods

Method Description
GetHexValue ( int c ) : char
GetReverse ( byte value, int offset, int length ) : byte[]
Reverse ( byte value ) : void

Method Details

FromBase64UrlString() public static method

public static FromBase64UrlString ( string value ) : byte[]
value string
return byte[]

FromHexString() public static method

16進数表記の文字列をバイト列に変換
public static FromHexString ( string value ) : byte[]
value string バイト配列に変換する文字列
return byte[]

FromSizeString() public static method

public static FromSizeString ( string value ) : decimal
value string
return decimal

GetBytes() public static method

public static GetBytes ( bool value ) : byte[]
value bool
return byte[]

GetBytes() public static method

public static GetBytes ( char value ) : byte[]
value char
return byte[]

GetBytes() public static method

public static GetBytes ( double value ) : byte[]
value double
return byte[]

GetBytes() public static method

public static GetBytes ( float value ) : byte[]
value float
return byte[]

GetBytes() public static method

public static GetBytes ( int value ) : byte[]
value int
return byte[]

GetBytes() public static method

public static GetBytes ( long value ) : byte[]
value long
return byte[]

GetBytes() public static method

public static GetBytes ( short value ) : byte[]
value short
return byte[]

GetBytes() public static method

public static GetBytes ( uint value ) : byte[]
value uint
return byte[]

GetBytes() public static method

public static GetBytes ( ulong value ) : byte[]
value ulong
return byte[]

GetBytes() public static method

public static GetBytes ( ushort value ) : byte[]
value ushort
return byte[]

ToBase64UrlString() public static method

public static ToBase64UrlString ( byte value ) : string
value byte
return string

ToBase64UrlString() public static method

public static ToBase64UrlString ( byte value, int offset, int length ) : string
value byte
offset int
length int
return string

ToBoolean() public static method

public static ToBoolean ( byte value ) : bool
value byte
return bool

ToBoolean() public static method

public static ToBoolean ( byte value, int offset ) : bool
value byte
offset int
return bool

ToChar() public static method

public static ToChar ( byte value ) : char
value byte
return char

ToChar() public static method

public static ToChar ( byte value, int offset ) : char
value byte
offset int
return char

ToDouble() public static method

public static ToDouble ( byte value ) : double
value byte
return double

ToDouble() public static method

public static ToDouble ( byte value, int offset ) : double
value byte
offset int
return double

ToHexString() public static method

バイト列を16進数表記の文字列に変換
public static ToHexString ( byte value ) : string
value byte 文字列に変換するバイト配列
return string

ToHexString() public static method

バイト列を16進数表記の文字列に変換
public static ToHexString ( byte value, int offset, int length ) : string
value byte 文字列に変換するバイト配列
offset int
length int
return string

ToInt16() public static method

public static ToInt16 ( byte value ) : short
value byte
return short

ToInt16() public static method

public static ToInt16 ( byte value, int offset ) : short
value byte
offset int
return short

ToInt32() public static method

public static ToInt32 ( byte value ) : int
value byte
return int

ToInt32() public static method

public static ToInt32 ( byte value, int offset ) : int
value byte
offset int
return int

ToInt64() public static method

public static ToInt64 ( byte value ) : long
value byte
return long

ToInt64() public static method

public static ToInt64 ( byte value, int offset ) : long
value byte
offset int
return long

ToSingle() public static method

public static ToSingle ( byte value ) : float
value byte
return float

ToSingle() public static method

public static ToSingle ( byte value, int offset ) : float
value byte
offset int
return float

ToSizeString() public static method

public static ToSizeString ( decimal b ) : string
b decimal
return string

ToSizeString() public static method

public static ToSizeString ( decimal b, string unit ) : string
b decimal
unit string
return string

ToUInt16() public static method

public static ToUInt16 ( byte value ) : ushort
value byte
return ushort

ToUInt16() public static method

public static ToUInt16 ( byte value, int offset ) : ushort
value byte
offset int
return ushort

ToUInt32() public static method

public static ToUInt32 ( byte value ) : uint
value byte
return uint

ToUInt32() public static method

public static ToUInt32 ( byte value, int offset ) : uint
value byte
offset int
return uint

ToUInt64() public static method

public static ToUInt64 ( byte value ) : ulong
value byte
return ulong

ToUInt64() public static method

public static ToUInt64 ( byte value, int offset ) : ulong
value byte
offset int
return ulong