(self,N=1)
| 80 | else: |
| 81 | return self.unpack('{:d}b',self.f.read(N*1))[0:N] #short |
| 82 | def read_int2(self,N=1): |
| 83 | if N==1: |
| 84 | return self.unpack('h',self.f.read(2))[0] #short |
| 85 | else: |
| 86 | return self.unpack('{:d}h'.format(N),self.f.read(N*2))[0:N] #short |
| 87 | def read_int4(self,N=1): |
| 88 | if N==1: |
| 89 | return self.unpack('i',self.f.read(4))[0] #int |