Example #1
0
 def startLongArray(self, length):
     print("{}TAG_Long_Array{}: [{:d} long{}]".format(
         self._is, _tns(self._n), length, "s" if length != 1 else ""))
Example #2
0
 def startCompound(self):
     print("{}TAG_Compound{}: {{".format(self._is, _tns(self._n)))
     self.setIndent(self._i + 1)
Example #3
0
 def startIntArray(self, length):
     print("{}TAG_Int_Array{}: [{:d} int{}]".format(
         self._is, _tns(self._n), length, "s" if length != 1 else ""))
Example #4
0
 def string(self, value):
     print("{}TAG_String{}: {:s}".format(self._is, _tns(self._n), value))
Example #5
0
 def startList(self, tagType, length):
     print("{}TAG_List{}: {} [".format(self._is, _tns(self._n),
                                       _tls(length, tagType)))
     self._n = None
     self.setIndent(self._i + 1)
Example #6
0
 def double(self, value):
     print("{}TAG_Double{}: {:g}".format(self._is, _tns(self._n), value))
Example #7
0
 def startByteArray(self, length):
     print("{}TAG_Byte_Array{}: [{:d} byte{}]".format(
         self._is, _tns(self._n), length, "s" if length != 1 else ""))
Example #8
0
 def float(self, value):
     print("{}TAG_Float{}: {:g}".format(self._is, _tns(self._n), value))
Example #9
0
 def long(self, value):
     print("{}TAG_Long{}: {:d}".format(self._is, _tns(self._n), value))
Example #10
0
 def int(self, value):
     print("{}TAG_Int{}: {:d}".format(self._is, _tns(self._n), value))
Example #11
0
 def short(self, value):
     print("{}TAG_Short{}: {:d}".format(self._is, _tns(self._n), value))
Example #12
0
 def byte(self, value):
     print("{}TAG_Byte{}: {:d}".format(self._is, _tns(self._n), value))