| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| private abstract static class | |
| private static class | Pack.
Introduced to allow outlining cases in #packCommon that update both of these values. |
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ASCIIEncoding | |
| private static final byte[] | |
| public static final int[] | |
| private static final char | |
| private static final Pack. | |
| private static final String | |
| private static final int | |
| private static final char | |
| private static final String | |
| private static final String | NATIVE_CODES
Native pack type. |
| public static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final String | |
| private static final int | |
| private static final int | UNPACK_ARRAY
Unpack modes |
| private static final int | |
| private static final USASCIIEncoding | |
| private static final UTF8Encoding | |
| private static final long[] | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static void | appendOrYield(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, IRubyObject item, int mode)
|
| private static IRubyObject | appendOrYield(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteList item, int mode)
|
| public static IRubyObject | decode(ThreadContext context, ByteBuffer encode, int occurrences, RubyArray<T extends IRubyObject> result, Block block, Pack.
|
| public static void | decode(ThreadContext context, Ruby runtime, ByteBuffer encode, int occurrences, RubyArray<T extends IRubyObject> result, Block block, Pack.
Deprecated
|
| private static double | Returns: the double valuestring to get int from encode)Decode a double in big-endian from a packed value |
| private static double | Returns: the double valuestring to get int from encode)Decode a double from a packed value |
| private static float | Returns: the double valuestring to get int from encode)Decode a float in big-endian from a packed value |
| private static float | Returns: the double valuestring to get int from encode)Decode a float in little-endian from a packed value |
| private static int | Returns: the decoded integerstring to get int from encode)Retrieve an encoded int in little endian starting at index in the string value. |
| private static int | Returns: the decoded integerstring to get int from encode)Retrieve an encoded int in little endian starting at index in the string value. |
| private static long | Returns: the decoded integerstring to get int from encode)Retrieve an encoded int in big endian starting at index in the string value. |
| private static long | Returns: the decoded integerthe encoded string encode)Retrieve an encoded int in little endian starting at index in the string value. |
| private static long | Returns: the long valuestring to get int from encode)Decode a long in big-endian format from a packed value |
| private static long | Returns: the long valuestring to get int from encode)Decode a long in little-endian format from a packed value |
| private static short | Returns: the short valuestring to get int from encode)Decode a short in big-endian from a packed value |
| private static int | Returns: the short valuestring to get int from encode)Decode a short in little-endian from a packed value |
| private static int | Returns: the short valuestring to get int from encode)Decode a short in big-endian from a packed value |
| private static int | Returns: the short valuestring to get int from encode)Decode a short in little-endian from a packed value |
| private static int | encode(ThreadContext context, int occurrences, ByteList result, RubyArray<T extends IRubyObject> list, int index, Pack.
|
| private static void | encodeDoubleBigEndian(ByteList
to pack double into result, double is the double to encode d)Encode a double in big-endian format into a packed value |
| private static void | encodeDoubleLittleEndian(ByteList
to pack double into result, double is the double to encode d)Encode a double in little endian format into a packed value |
| private static void | encodeFloatBigEndian(ByteList
to pack float into result, float is the float to encode f)Encode a float in big-endian format into a packed value |
| private static void | encodeFloatLittleEndian(ByteList
to pack float into result, float is the float to encode f)Encode a float in little endian format into a packed value |
| private static void | encodeIntBigEndian(ByteList
to be appended to result, int the integer to encode s)Encode an int in big-endian format into a packed representation. |
| private static void | encodeIntLittleEndian(ByteList
to be appended to result, int the integer to encode s)Encode an int in little endian format into a packed representation. |
| private static void | encodeLongBigEndian(ByteList
to pack long into result, long is the long to encode l)Encode a long in big-endian format into a packed value |
| private static void | encodeLongLittleEndian(ByteList
to pack long into result, long is the long to encode l)Encode a long in little-endian format into a packed value |
| private static ByteList | Returns: the io2Append bufferThe StringBuffer which should receive the result io2Append, byte[] The String to encode charsToEncode, int startIndex, int The max number of characters to encode length, int charCount, byte the type of encoding required (this is the same type as used by the pack method) encodingType, boolean true if the traililng "\n" is needed tailLf)encodes a String in base64 or its uuencode variant. |
| private static void | encodeShortBigEndian(ByteList
to be appended to result, int the short to encode s)Encode an shortin big-endian format into a packed representation. |
| private static void | encodeShortLittleEndian(ByteList
to be appended to result, int the short to encode s)Encode an short in little endian format into a packed representation. |
| private static void | encodeUM(ThreadContext context, ByteList lCurElemString, int occurrences, boolean ignoreStar, char type, ByteList result)
|
| private static Pack. | |
| public static int | |
| private static final ByteList | |
| private static boolean | |
| private static long | |
| private static double | |
| private static float | |
| public static RubyString | pack(ThreadContext context, RubyArray<T extends IRubyObject> list, RubyString formatString, RubyString buffer)
|
| public static RubyString | |
| public static RubyString | pack(ThreadContext context, Ruby runtime, RubyArray<T extends IRubyObject> list, RubyString formatString)
Deprecated
|
| private static void | |
| private static void | pack_h(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList result, Pack.
|
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | pack_M(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList result, Pack.
|
| private static void | pack_m(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList result, Pack.
|
| private static void | pack_U(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList result, Pack.
|
| private static void | pack_w(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList result, Pack.
|
| private static void | |
| private static RubyString | packCommon(ThreadContext context, RubyArray<T extends IRubyObject> list, ByteList formatString, Pack.
|
| public static ByteList | |
| public static int | |
| private static final ByteList | |
| private static int | |
| private static void | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static IRubyObject | |
| public static IRubyObject | unpack1WithBlock(ThreadContext context, RubyString encoded, ByteList formatString, long offset, Block block)
|
| private static IRubyObject | unpack_a(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_A(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static void | |
| private static IRubyObject | unpack_B(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_b(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_H(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_h(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_M(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int mode)
|
| private static IRubyObject | unpack_m(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static int | |
| private static int | unpack_m_zeroOccurrences(ThreadContext context, ByteBuffer encode, byte[] lElem, int a, int b, int c, int index, int s)
|
| private static IRubyObject | unpack_U(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static IRubyObject | unpack_u(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int mode)
|
| private static IRubyObject | unpack_w(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static void | |
| private static void | |
| private static IRubyObject | unpack_Z(ThreadContext context, Block block, RubyArray<T extends IRubyObject> result, ByteBuffer encode, int occurrences, int mode)
|
| private static RubyString | |
| public static int | |
| private static IRubyObject | unpackInternal(ThreadContext context, RubyString encoded, ByteList formatString, int mode, long offset, Block block)
|
| public static RubyArray | unpackWithBlock(ThreadContext context, RubyString encoded, ByteList formatString, Block block)
Decodes str (which may contain binary data) according to the format string, returning an array of each value extracted. |
| public static RubyArray | unpackWithBlock(ThreadContext context, RubyString encoded, ByteList formatString, long offset, Block block)
|
| public static RubyArray | unpackWithBlock(ThreadContext context, Ruby runtime, ByteList encodedString, ByteList formatString, Block block)
Deprecated
|
| public static int | |
| private static int |