Package: groovy.json.internal

## [Java] Class FastStringUtils

- groovy.json.internal.FastStringUtils

- Internal class for fast processing of Strings during JSON parsing

- - ### Nested Class Summary

    Nested classes
    Modifiers | Name | Description
    --- | --- | ---
    `protected enum` | `FastStringUtils.StringImplementation` |

  - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static boolean` | `ENABLED` |
    `static long` | `STRING_COUNT_FIELD_OFFSET` |
    `static FastStringUtils.StringImplementation` | `STRING_IMPLEMENTATION` |
    `static long` | `STRING_OFFSET_FIELD_OFFSET` |
    `static long` | `STRING_VALUE_FIELD_OFFSET` |
    `static sun.misc.Unsafe` | `UNSAFE` |

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static String` | `noCopyStringFromChars(char[] chars)` @param chars to shove array into.
    `` | `static char[]` | `toCharArray(String string)` @param string string to grab array from.
    `` | `static char[]` | `toCharArray(CharSequence charSequence)` @param charSequence to grab array from.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, toString, hashCode, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### public static final boolean ENABLED

    - #### public static final long STRING_COUNT_FIELD_OFFSET

    - #### public static FastStringUtils.StringImplementation STRING_IMPLEMENTATION

    - #### public static final long STRING_OFFSET_FIELD_OFFSET

    - #### public static final long STRING_VALUE_FIELD_OFFSET

    - #### public static final sun.misc.Unsafe UNSAFE

  - ### Method Detail

    - #### public static String noCopyStringFromChars(char[] chars)

      Parameters:
        `chars` - to shove array into.
      Returns:
        new string with chars copied into it

    - #### public static char[] toCharArray(String string)

      Parameters:
        `string` - string to grab array from.
      Returns:
        char array from string

    - #### public static char[] toCharArray(CharSequence charSequence)

      Parameters:
        `charSequence` - to grab array from.
      Returns:
        char array from char sequence