module JavaByteArray:sig..end
typee =int
type'at ='a java_byte_array
val make : int32 -> e java_byte_arraymake len creates and returns an array of len elements.
All elements are set to zero.
Raises Java_exception if len is negative.
val length : e java_byte_array -> int32length a returns the length of a.
Raises Java_exception if a is null.
val get : e java_byte_array -> int32 -> eget a i returns the element at index i in a.
Raises Java_exception if a is null, or i is out of bounds.
val set : e java_byte_array -> int32 -> e -> unitset a i x changes the element at index i in a to x.
Raises Java_exception if a is null, or i is out of bounds.
val to_object : e java_byte_array -> java'lang'Object java_instanceto_object a casts a to a bare object.val of_object : java'lang'Object java_instance -> e java_byte_arrayof_object o casts object o to array.
Raises Java_exception if cast fails.
val null : e java_byte_arrayval is_null : e java_byte_array -> boolis_null x returns true iff x is equal to null.val is_not_null : e java_byte_array -> boolis_not_null x returns false iff x is equal to null.val to_string : e java_byte_array -> stringto_string x returns the passed array as wrapped into a string.val of_string : string -> e java_byte_arrayof_string x returns the array wrapped inside the passed string.