ó êªLc@s6ddlmZddlZdefd„ƒYZdS(iÿÿÿÿ(tarrayNt ByteArraycBs­eZdZdd„Zdd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„ZRS(sš Extended array.array class, with read and write methods. Acting like a buffer for reading, with a incremented index, for message conversion. tcCstt|ƒj|d|ƒS(NtB(tsuperRt__new__(tclstinitialContent((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyRscCs d|_dS(s Constructor iN(t readIndex(tselfR((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt__init__ scCs.|jƒ}|dk r*|jd7_n|S(Ni(tpeekInttNoneR(R tint((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pytreadInt's  cCsR|jdt|ƒkrJ||j|jd!}tjd|ƒ}|dSdSdS(Nis!ii(RtlentstructtunpackR (R tstringttmp((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyR .s cCs.|jƒ}|dk r*|jd7_n|S(Ni(t peekDoubleR R(R tdouble((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt readDouble6s  cCsR|jdt|ƒkrJ||j|jd!}tjd|ƒ}|dSdSdS(Nis!di(RRRRR (R RR((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyR=s cCs.|jƒ}|dk r*|jd7_n|S(Ni(tpeekByteR R(R tbyte((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pytreadByteEs  cCs.|jt|ƒkr&||j}|SdSdS(N(RRR (R R((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyRLs cCs.|jƒ}|dk r*|jd7_n|S(Ni(t peekShortIntR R(R R ((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt readShortIntSs  cCs.|jƒ}|dk r*|jd7_n|S(Ni(t peekBooleanR R(R R((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt readBooleanZs  cCs;|jt|ƒkr3||j}|r,tStSndSdS(N(RRtTruetFalseR (R R((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyR`s  cCsR|jdt|ƒkrJ||j|jd!}tjd|ƒ}|dSdSdS(Nis!hi(RRRRR (R RR((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyRgs cCs|j|ƒdS(N(tappend(R tvalue((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt writeByteoscCs'|r|jdƒn |jdƒdS(Nii(R (R R!((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt writeBooleanrscCs/tjd|ƒ}t|ƒ}|j|ƒdS(Ns!i(RtpackRtextend(R R!Rtbytes((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pytwriteIntvs cCs/tjd|ƒ}t|ƒ}|j|ƒdS(Ns!d(RR$RR%(R R!RR&((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt writeDouble{s cCs0|jt|ƒƒt|ƒ}|j|ƒdS(N(R'RRR%(R RR((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyt writeString„s (t__name__t __module__t__doc__RR RR RRRRRRRRR"R#R'R(R)(((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyRs$                (RRR(((sRC:\Users\aron\Desktop\Neobotix\Recovery\NeoInterpreter\Neobotix\Bases\ByteArray.pyts