org.jetbrains.jet.descriptors.serialization
Class BitEncoding

java.lang.Object
  extended by org.jetbrains.jet.descriptors.serialization.BitEncoding

public class BitEncoding
extends java.lang.Object


Method Summary
static byte[] decodeBytes(java.lang.String[] data)
          Converts encoded array of String obtained by encodeBytes(byte[]) back to a byte array.
static java.lang.String[] encodeBytes(byte[] data)
          Converts a byte array of serialized data to an array of String satisfying JVM annotation value argument restrictions: Each string's length should be no more than 65535 UTF-8 representation of each string cannot contain bytes in the range 0xf0..0xff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeBytes

@NotNull
public static java.lang.String[] encodeBytes(@NotNull
                                                     byte[] data)
Converts a byte array of serialized data to an array of String satisfying JVM annotation value argument restrictions:
  1. Each string's length should be no more than 65535
  2. UTF-8 representation of each string cannot contain bytes in the range 0xf0..0xff


decodeBytes

@NotNull
public static byte[] decodeBytes(@NotNull
                                         java.lang.String[] data)
Converts encoded array of String obtained by encodeBytes(byte[]) back to a byte array.