Search in sources :

Example 1 with EncodedValue

use of com.taobao.android.dex.EncodedValue in project atlas by alibaba.

the class IndexMap method adjustEncodedArray.

public EncodedValue adjustEncodedArray(EncodedValue encodedArray) {
    ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
    new EncodedValueTransformer(out).transformArray(new EncodedValueReader(encodedArray, ENCODED_ARRAY));
    return new EncodedValue(out.toByteArray());
}
Also used : EncodedValue(com.taobao.android.dex.EncodedValue) EncodedValueReader(com.taobao.android.dex.EncodedValueReader) ByteArrayAnnotatedOutput(com.taobao.android.dx.util.ByteArrayAnnotatedOutput)

Example 2 with EncodedValue

use of com.taobao.android.dex.EncodedValue in project atlas by alibaba.

the class IndexMap method adjust.

public Annotation adjust(Annotation annotation) {
    ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
    new EncodedValueTransformer(out).transformAnnotation(annotation.getReader());
    return new Annotation(target, annotation.getVisibility(), new EncodedValue(out.toByteArray()));
}
Also used : EncodedValue(com.taobao.android.dex.EncodedValue) ByteArrayAnnotatedOutput(com.taobao.android.dx.util.ByteArrayAnnotatedOutput) Annotation(com.taobao.android.dex.Annotation)

Example 3 with EncodedValue

use of com.taobao.android.dex.EncodedValue in project atlas by alibaba.

the class IndexMap method adjustEncodedValue.

public EncodedValue adjustEncodedValue(EncodedValue encodedValue) {
    ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput(32);
    new EncodedValueTransformer(out).transform(new EncodedValueReader(encodedValue));
    return new EncodedValue(out.toByteArray());
}
Also used : EncodedValue(com.taobao.android.dex.EncodedValue) EncodedValueReader(com.taobao.android.dex.EncodedValueReader) ByteArrayAnnotatedOutput(com.taobao.android.dx.util.ByteArrayAnnotatedOutput)

Aggregations

EncodedValue (com.taobao.android.dex.EncodedValue)3 ByteArrayAnnotatedOutput (com.taobao.android.dx.util.ByteArrayAnnotatedOutput)3 EncodedValueReader (com.taobao.android.dex.EncodedValueReader)2 Annotation (com.taobao.android.dex.Annotation)1