code: @SuppressWarnings("empty-statement")
      public static byte[] leftTrim(final byte... bytes) {
          int pos = 0;
          for (; pos < bytes.length && bytes[pos] == 0x00; pos++);
  
          if (pos < bytes.length) {
              return Arrays.copyOfRange(bytes, pos, bytes.length);
          } else {
              return new byte[] { 0x00 };
          }
      }
docs: Remove 0x00 bytes from left side.
  
  @param bytes source array.
  @return trimmed array.