Giter VIP home page Giter VIP logo

arsctool's Introduction

arsctool's People

Contributors

kikfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

arsctool's Issues

BCP 47 language configFlags lost duirng build

Decoding works fine
An example with this short table.xml:

<table version="0.0.2">
   <packages index="1" count="1">
        <package index="0" id="127" name="what.the">
            <specs index="2" count="1">
               <spec index="1" id="17" entryCount="301" name="string">
                 <types index="1" count="3">
                    <type index="0" id="17" configFlags="-es" configFlagsSize="64" entryCount="301"/>
                    <type index="1" id="17" *configFlags="-b+es+419"* configFlagsSize="64" entryCount="301"/>
                    <type index="2" id="17" configFlags="-es-rUS" configFlagsSize="64" entryCount="301"/>
                 </types>
               </spec>
            </specs>
        </package>
   </packages>
</table>

Encoding has trouble
Once built back to .arsc format then again converted to xml:

<table version="0.0.2">
   <packages index="1" count="1">
        <package index="0" id="127" name="what.the">
            <specs index="2" count="1">
               <spec index="1" id="17" entryCount="301" name="string">
                 <types index="1" count="3">
                    <type index="0" id="17" configFlags="-es" configFlagsSize="64" entryCount="301"/>
                    <type index="1" id="17" configFlags="" configFlagsSize="64" entryCount="301"/>
                    <type index="2" id="17" configFlags="-es-rUS" configFlagsSize="64" entryCount="301"/>
                 </types>
               </spec>
            </specs>
        </package>
   </packages>
</table>

Depth out of bounds

As you can see,It can not deal with depth more than 3 levels.
Uploading 16680055789201194173028405090771.jpg…
I: 00.015 Dumping ... 'D:\platform-tools\Java\resources.arsc'
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at com.kikfox.lib.arsc.AItemString.decodeUtf8StringByteLength(AItemString.java:388)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:358)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:205)
at com.kikfox.lib.arsc.AItemString.onBytesChanged(AItemString.java:213)
at com.kikfox.lib.arsc.AItemString.loadBytes(AItemString.java:92)
at com.kikfox.lib.arsc.ARSCArrayOffsets.loadItemBytes(ARSCArrayOffsets.java:49)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.command.CommandDump.dump(CommandDump.java:35)
at com.command.CommandDump.run(CommandDump.java:28)
at com.command.BaseCommand.parse(BaseCommand.java:36)
at com.command.CommandDump.parse(CommandDump.java:13)
at com.command.Command.run(Command.java:34)
at com.kikfox.arscTool.Main.main(Main.java:15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.