// Path: src/main/java/com/github/mreutegg/laszip4j/clib/Cstring.java
// public static int strcmp(byte[] s1, String s2) {
//     return trim(MyDefs.stringFromByteArray(s1)).compareTo(trim(s2));
// }


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.github.mreutegg.laszip4j.clib.Cstring.strcmp;
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
            attribute_starts.add(attribute_starts.get(number_attributes-2) + attribute_sizes.get(number_attributes-2));
            attribute_sizes.add(attributes.get(number_attributes-1).get_size());
            return number_attributes-1;
        }
        return -1;
    };

    short get_attributes_size()
    {
        return (short) (!attributes.isEmpty() ? attribute_starts.get(number_attributes-1) + attribute_sizes.get(number_attributes-1) : 0);
    }

    public int get_attribute_index(String name)
    {
        int i;
        for (i = 0; i < number_attributes; i++)
        {
            if (strcmp(attributes.get(i).   name, name) == 0)
            {
                return i;
            }
        }
        return -1;
    }

    int get_attribute_start(String name)
    {
        int i;
        for (i = 0; i < number_attributes; i++)
        {
// Path: src/main/java/com/github/mreutegg/laszip4j/clib/Cstring.java
// public static int strcmp(byte[] s1, String s2) {
//     return trim(MyDefs.stringFromByteArray(s1)).compareTo(trim(s2));
// }


// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/LASattributer.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.github.mreutegg.laszip4j.clib.Cstring.strcmp;
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;

            attribute_starts.add(attribute_starts.get(number_attributes-2) + attribute_sizes.get(number_attributes-2));
            attribute_sizes.add(attributes.get(number_attributes-1).get_size());
            return number_attributes-1;
        }
        return -1;
    };

    short get_attributes_size()
    {
        return (short) (!attributes.isEmpty() ? attribute_starts.get(number_attributes-1) + attribute_sizes.get(number_attributes-1) : 0);
    }

    public int get_attribute_index(String name)
    {
        int i;
        for (i = 0; i < number_attributes; i++)
        {
            if (strcmp(attributes.get(i).   name, name) == 0)
            {
                return i;
            }
        }
        return -1;
    }

    int get_attribute_start(String name)
    {
        int i;
        for (i = 0; i < number_attributes; i++)
        {
            if (strcmp(attributes.get(i).name, name) == 0)