Org.BouncyCastle.Apache.Bzip2.CBZip2InputStream.BsR(int)

Here are the examples of the csharp api class Org.BouncyCastle.Apache.Bzip2.CBZip2InputStream.BsR(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

18 Examples 7

1. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private char BsGetUChar() {
            return (char) BsR(8);
        }

2. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private int BsGetint() {
            int u = 0;
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            return u;
        }

3. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private int BsGetIntVS(int numBits) {
            return (int) BsR(numBits);
        }

4. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private char BsGetUChar() {
            return (char) BsR(8);
        }

5. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private int BsGetint() {
            int u = 0;
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            return u;
        }

6. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private int BsGetIntVS(int numBits) {
            return (int) BsR(numBits);
        }

7. Example

Project: cms
Source File: CBZip2InputStream.cs
private char BsGetUChar() {
            return (char) BsR(8);
        }

8. Example

Project: cms
Source File: CBZip2InputStream.cs
private int BsGetint() {
            int u = 0;
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            u = (u << 8) | BsR(8);
            return u;
        }

9. Example

Project: cms
Source File: CBZip2InputStream.cs
private int BsGetIntVS(int numBits) {
            return (int) BsR(numBits);
        }

10. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private void RecvDecodingTables() {
            char[][] len = InitCharArray(BZip2Constants.N_GROUPS/n ..... /n //View Source file for more details /n }

11. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private void RecvDecodingTables() {
            char[][] len = InitCharArray(BZip2Constants.N_GROUPS/n ..... /n //View Source file for more details /n }

12. Example

Project: cms
Source File: CBZip2InputStream.cs
private void RecvDecodingTables() {
            char[][] len = InitCharArray(BZip2Constants.N_GROUPS/n ..... /n //View Source file for more details /n }

13. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private void InitBlock() {
            char magic1, magic2, magic3, magic4;
            char magic5, magic6;
            magic1 = BsGetUChar();
            magic2 = BsGetUChar();
            magic3 = BsGetUChar();
            magic4 = BsGetUChar();
            magic5 = BsGetUChar();
            magic6 = BsGetUChar();
            if (magic1 == 0x17 && magic2 == 0x72 && magic3 == 0x45
                && magic4 == 0x38 && magic5 == 0x50 && magic6 == 0x90) {
                Complete();
                return;
            }

            if (magic1 != 0x31 || magic2 != 0x41 || magic3 != 0x59
                || magic4 != 0x26 || magic5 != 0x53 || magic6 != 0x59) {
                BadBlockHeader();
                streamEnd = true;
                return;
            }

            storedBlockCRC = BsGetInt32();

            if (BsR(1) == 1) {
                blockRandomised = true;
            } else {
                blockRandomised = false;
            }

            //        currBlockNo++;
            GetAndMoveToFrontDecode();

            mCrc.InitialiseCRC();
            currentState = START_BLOCK_STATE;
        }

14. Example

Project: OutlookPrivacyPlugin
Source File: CBZip2InputStream.cs
private void GetAndMoveToFrontDecode() {
            char[] yy = new char[256];
            int i, j/n ..... /n //View Source file for more details /n }

15. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private void InitBlock() {
            char magic1, magic2, magic3, magic4;
            char magic5, magic6;
            magic1 = BsGetUChar();
            magic2 = BsGetUChar();
            magic3 = BsGetUChar();
            magic4 = BsGetUChar();
            magic5 = BsGetUChar();
            magic6 = BsGetUChar();
            if (magic1 == 0x17 && magic2 == 0x72 && magic3 == 0x45
                && magic4 == 0x38 && magic5 == 0x50 && magic6 == 0x90) {
                Complete();
                return;
            }

            if (magic1 != 0x31 || magic2 != 0x41 || magic3 != 0x59
                || magic4 != 0x26 || magic5 != 0x53 || magic6 != 0x59) {
                BadBlockHeader();
                streamEnd = true;
                return;
            }

            storedBlockCRC = BsGetInt32();

            if (BsR(1) == 1) {
                blockRandomised = true;
            } else {
                blockRandomised = false;
            }

            //        currBlockNo++;
            GetAndMoveToFrontDecode();

            mCrc.InitialiseCRC();
            currentState = START_BLOCK_STATE;
        }

16. Example

Project: Netcode.IO.NET
Source File: CBZip2InputStream.cs
private void GetAndMoveToFrontDecode() {
            char[] yy = new char[256];
            int i, j/n ..... /n //View Source file for more details /n }

17. Example

Project: cms
Source File: CBZip2InputStream.cs
private void InitBlock() {
            char magic1, magic2, magic3, magic4;
            char magic5, magic6;
            magic1 = BsGetUChar();
            magic2 = BsGetUChar();
            magic3 = BsGetUChar();
            magic4 = BsGetUChar();
            magic5 = BsGetUChar();
            magic6 = BsGetUChar();
            if (magic1 == 0x17 && magic2 == 0x72 && magic3 == 0x45
                && magic4 == 0x38 && magic5 == 0x50 && magic6 == 0x90) {
                Complete();
                return;
            }

            if (magic1 != 0x31 || magic2 != 0x41 || magic3 != 0x59
                || magic4 != 0x26 || magic5 != 0x53 || magic6 != 0x59) {
                BadBlockHeader();
                streamEnd = true;
                return;
            }

            storedBlockCRC = BsGetInt32();

            if (BsR(1) == 1) {
                blockRandomised = true;
            } else {
                blockRandomised = false;
            }

            //        currBlockNo++;
            GetAndMoveToFrontDecode();

            mCrc.InitialiseCRC();
            currentState = START_BLOCK_STATE;
        }

18. Example

Project: cms
Source File: CBZip2InputStream.cs
private void GetAndMoveToFrontDecode() {
            char[] yy = new char[256];
            int i, j/n ..... /n //View Source file for more details /n }