Метод | Описание | |
---|---|---|
GetBytes ( System.Single value ) : byte[] |
Given a 32-bit IEEE single precision floating point number, returns four bytes encoding a single precision number in IBM System/360 Floating Point format
|
|
GetBytes ( decimal originalValue ) : byte[] |
Convert the decimal value into its packed value James Howey Copyright (c) Microsoft Corporation. All rights reserved. Microsoft Shared Source Permissive License |
|
GetBytes ( int value ) : byte[] | ||
GetBytes ( short value ) : byte[] |
Returns two bytes encoding a big endian 16-bit signed integer given a 16-bit signed integer
|
|
GetBytes ( string value ) : byte[] |
Returns a byte array of EBCDIC encoded characters converted from a Unicode string
|
|
GetBytes ( string value, int startingIndex ) : byte[] |
Returns a byte array of EBCDIC encoded characters converted from a Unicode substring starting at the specified position
|
|
GetBytes ( string value, int startingIndex, int length ) : byte[] |
Returns a byte array of EBCDIC encoded characters converted from a Unicode substring starting at the specified position with the given length
|
|
ToInt16 ( byte value ) : |
Returns a 16-bit signed integer converted from two bytes encoding a big endian 16-bit signed integer
|
|
ToInt16 ( byte value, int startIndex ) : |
Returns a 16-bit signed integer converted from two bytes in a specified position encoding a big endian 16-bit signed integer
|
|
ToInt32 ( byte value, int startIndex ) : |
Returns a 32-bit signed integer converted from four bytes at a specified position encoding a big endian 32-bit signed integer
|
|
ToInt32 ( byte value ) : int |
Returns a 32-bit signed integer converted from four bytes encoding a big endian 32-bit signed integer
|
|
ToSingle ( byte value ) : System.Single |
Returns a 32-bit IEEE single precision floating point number from four bytes encoding a single precision number in IBM System/360 Floating Point format
|
|
ToString ( byte value ) : string |
Returns a Unicode string converted from a byte array of EBCDIC encoded characters
|
|
ToString ( byte value, int startingIndex ) : string |
Returns a Unicode string converted from a byte array of EBCDIC encoded characters starting at the specified position
|
|
ToString ( byte value, int startingIndex, int length ) : string |
Returns a Unicode string converted from a byte array of EBCDIC encoded characters starting at the specified position of the given length
|
|
ToUnpackedDecimal ( byte inputData, int scale ) : Decimal |
Unpack the byte array into a decimal From the java version made by p4w3l located here : http://cobol2j.cvs.sourceforge.net/viewvc/cobol2j/cobol2j/src/main/java/net/sf/cobol2j/RecordSet.java?revision=1.25&view=markup from the open source projet cobol2j at http://sourceforge.net/projects/cobol2j/ under LGPLV2 |
public static GetBytes ( System.Single value ) : byte[] | ||
value | System.Single | |
Результат | byte[] |
public static GetBytes ( decimal originalValue ) : byte[] | ||
originalValue | decimal | The value to pack |
Результат | byte[] |
public static GetBytes ( int value ) : byte[] | ||
value | int | |
Результат | byte[] |
public static GetBytes ( short value ) : byte[] | ||
value | short | |
Результат | byte[] |
public static GetBytes ( string value ) : byte[] | ||
value | string | |
Результат | byte[] |
public static GetBytes ( string value, int startingIndex ) : byte[] | ||
value | string | |
startingIndex | int | /// Zero-based starting index of substring /// |
Результат | byte[] |
public static GetBytes ( string value, int startingIndex, int length ) : byte[] | ||
value | string | |
startingIndex | int | /// Zero-based starting index of substring /// |
length | int | /// Number of characters to convert /// |
Результат | byte[] |
public static ToInt16 ( byte value ) : |
||
value | byte | |
Результат |
public static ToInt16 ( byte value, int startIndex ) : |
||
value | byte | |
startIndex | int | |
Результат |
public static ToInt32 ( byte value, int startIndex ) : |
||
value | byte | |
startIndex | int | |
Результат |
public static ToInt32 ( byte value ) : int | ||
value | byte | |
Результат | int |
public static ToSingle ( byte value ) : System.Single | ||
value | byte | |
Результат | System.Single |
public static ToString ( byte value ) : string | ||
value | byte | |
Результат | string |
public static ToString ( byte value, int startingIndex ) : string | ||
value | byte | |
startingIndex | int | /// Zero-based index of starting position in value array /// |
Результат | string |
public static ToString ( byte value, int startingIndex, int length ) : string | ||
value | byte | |
startingIndex | int | /// Zero-based index of starting position in value array /// |
length | int | /// Number of characters to convert /// |
Результат | string |
public static ToUnpackedDecimal ( byte inputData, int scale ) : Decimal | ||
inputData | byte | |
scale | int | |
Результат | Decimal |