Esempio n. 1
0
 def __new__(cls, data, blksize):
     obj = BigFile.__new__(cls, blksize)
     obj.datab = data.view(uint8)
     return obj
Esempio n. 2
0
 def __new__(cls, head, blksize):
     obj = BigFile.__new__(cls, blksize)
     obj.head   = head
     obj.storev = []
     return obj
Esempio n. 3
0
 def __new__(cls, blksize):
     obj = BigFile.__new__(cls, blksize)
     obj.cycle = 0
     return obj
Esempio n. 4
0
 def __new__(cls, obj_4del, blksize):
     obj = BigFile.__new__(cls, blksize)
     obj.obj_4del = obj_4del
     obj.marker_list = []
     return obj
Esempio n. 5
0
 def __new__(cls, path_or_fd, blksize):
     # XXX pass flags/mode as args to ctor ?
     f = FileIO(path_or_fd, 'r+')
     obj = BigFile.__new__(cls, blksize)
     obj.f = f
     return obj