@Override protected int getItemSize(StringData item) { return item.byteCountInDex(); }
public StringData readStringData() { int off = data.position(); try { int expectedLength = readUleb128(); String result = Mutf8.decode(this, new char[expectedLength]); if (result.length() != expectedLength) { throw new DexException("Declared length " + expectedLength + " doesn't match decoded length of " + result.length()); } return new StringData(off, result); } catch (UTFDataFormatException e) { throw new DexException(e); } }
public StringData readStringData() { int off = data.position(); try { int expectedLength = readUleb128(); String result = Mutf8.decode(this, new char[expectedLength]); if (result.length() != expectedLength) { throw new DexException("Declared length " + expectedLength + " doesn't match decoded length of " + result.length()); } return new StringData(off, result); } catch (UTFDataFormatException e) { throw new DexException(e); } }
@Override protected int getItemSize(StringData item) { return item.byteCountInDex(); }
@Override protected int getItemSize(StringData item) { return item.byteCountInDex(); }
@Override protected int getItemSize(StringData item) { return item.byteCountInDex(); }