Permalink
Browse files

add docstring

  • Loading branch information...
1 parent b634a4d commit 6a2d951f2edde2f09ed5898b8c6384e219e5fc62 @esc committed May 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bloscpack.py
View
@@ -294,7 +294,7 @@ def create_bloscpack_header(nchunks):
return (MAGIC + struct.pack('<I', nchunks))
def decode_bloscpack_header(buffer_):
- # buffer should be of length 16
+ """ Check that the magic marker exists and return number of chunks. """
if len(buffer_) != 8:
error('attempting to decode a bloscpack header of length other than 16')
elif buffer_[0:4] != MAGIC:

0 comments on commit 6a2d951

Please sign in to comment.