javazoom.jl.decoder.LayerIIDecoder.SubbandLayer2Stereo.read_allocation C# (CSharp) Method

read_allocation() public method

*
public read_allocation ( Bitstream stream, Header header, Crc16 crc ) : void
stream Bitstream
header Header
crc Crc16
return void
            public override void read_allocation(Bitstream stream, Header header, Crc16 crc)
            {
                int length = get_allocationlength(header);
                allocation = stream.get_bits(length);
                channel2_allocation = stream.get_bits(length);
                if (crc != null)
                {
                    crc.add_bits(allocation, length);
                    crc.add_bits(channel2_allocation, length);
                }
            }