예제 #1
0
 def getLFloat(self, accuracy: int = -1):
     return Binary.readLFloat(self.get(4), accuracy)
예제 #2
0
 def getLShort(self, signed=True):
     return signed if Binary.readSignedLShort(
         self.get(2)) else Binary.readLShort(self.get(2))
예제 #3
0
 def putLShort(self, v):
     self.buffer += Binary.writeLShort(v)
예제 #4
0
 def putSignedShort(self, v):
     self.buffer += Binary.writeShort(v)
예제 #5
0
 def putFloat(self, v):
     self.buffer += Binary.writeFloat(v)
예제 #6
0
 def putLInt(self, v):
     self.buffer += Binary.writeLInt(v)
예제 #7
0
 def getShort(self):
     return Binary.readShort(self.get(2))
예제 #8
0
 def putLLong(self, v):
     self.buffer += Binary.writeLLong(v)
예제 #9
0
 def getLInt(self):
     return Binary.readLInt(self.get(4))
예제 #10
0
 def putUnsignedVarInt(self, v):
     self.put(Binary.writeUnsignedVarInt(v))
예제 #11
0
 def getLLong(self):
     return Binary.readLLong(self.get(8))
예제 #12
0
 def getUnsignedVarInt(self):
     return Binary.readUnsignedVarInt(self)
예제 #13
0
 def putVarInt(self, v):
     self.put(Binary.writeVarInt(v))
예제 #14
0
 def getVarInt(self):
     return Binary.readVarInt(self)
예제 #15
0
 def putLTriad(self, v):
     self.buffer += Binary.writeLTriad(v)
예제 #16
0
 def getLTriad(self):
     return Binary.readLTriad(self.get(3))