예제 #1
0
파일: packet.py 프로젝트: Muzzoid/skadi
  def read_packet_message():
    try:
      kind = read_varint(stream)
      size = read_varint(stream)
      tell = stream.tell()

      stream.seek(tell + size)
    except EOFError, e:
      return None
예제 #2
0
    def read_packet_message():
        try:
            kind = read_varint(stream)
            size = read_varint(stream)
            tell = stream.tell()

            stream.seek(tell + size)
        except EOFError, e:
            return None
예제 #3
0
파일: demo.py 프로젝트: twocngdagz/skadi
    def read_demo_message():
        try:
            kind = read_varint(stream)
            tick = read_varint(stream)
            size = read_varint(stream)

            comp = pb_d.DEM_IsCompressed & kind
            kind = (kind ^ pb_d.DEM_IsCompressed) if comp else kind
            tell = stream.tell()

            stream.seek(tell + size)
        except EOFError, e:
            return None
예제 #4
0
파일: demo.py 프로젝트: grschafer/skadi
  def read_demo_message():
    try:
      kind = read_varint(stream)
      tick = read_varint(stream)
      size = read_varint(stream)

      comp = pb_d.DEM_IsCompressed & kind
      kind = (kind ^ pb_d.DEM_IsCompressed) if comp else kind
      tell = stream.tell()

      stream.seek(tell + size)
    except EOFError, e:
      return None