comparison pytouhou/formats/pbg3.py @ 52:ab826bc29aa2

Add some documentation, GPLv3 headers, README and COPYING file.
author Thibaut Girka <thib@sitedethib.com>
date Mon, 22 Aug 2011 22:37:14 +0200
parents 6b2c7af2384c
children 3da4de9decd0
comparison
equal deleted inserted replaced
51:0707ff53e7b5 52:ab826bc29aa2
1 from pytouhou.utils.bitstream import BitStream 1 from pytouhou.utils.bitstream import BitStream
2 import pytouhou.utils.lzss as lzss 2 import pytouhou.utils.lzss as lzss
3 3
4
5 # -*- encoding: utf-8 -*-
6 ##
7 ## Copyright (C) 2011 Thibaut Girka <thib@sitedethib.com>
8 ##
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published
11 ## by the Free Software Foundation; version 3 only.
12 ##
13 ## This program is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
17 ##
4 18
5 class PBG3BitStream(BitStream): 19 class PBG3BitStream(BitStream):
6 def read_int(self): 20 def read_int(self):
7 size = self.read(2) 21 size = self.read(2)
8 return self.read((size + 1) * 8) 22 return self.read((size + 1) * 8)