Current Forum: Homework 4 - Huffman Trees (Part 1) |
Date: Wed Oct 10 2001 12:51 am |
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu> |
Subject: Re: remaining bits |
|
|
32 bits is actually the maximum number of bits you can use if you are using BitReader.numBytes() to get the file length. numBytes() returns an int, which is 32 bits... so, 32 bits will be cool.
you can store it like:
int fileSize; BitWrite.writeBits(fileSize, 32); |
|