java.lang.Object
org.htmlunit.corejs.javascript.typedarrays.DecodeResult

public final class DecodeResult extends Object
The result of decoding a base64 or hex string into bytes, as returned by Base64Codec.decode(java.lang.String, boolean, java.lang.String) and HexCodec.decode(java.lang.String).
  • Field Details

    • read

      public final int read
    • written

      public final int written
    • bytes

      public final byte[] bytes
    • error

      public final EcmaError error
  • Constructor Details

    • DecodeResult

      public DecodeResult(int read, int written, byte[] bytes, EcmaError error)
      Parameters:
      bytes - the decoded bytes; may be longer than written since the buffer is sized to the longest possible result up front. Only the first written bytes are valid.