csogg.StreamState.body_expand C# (CSharp) Méthode

body_expand() public méthode

public body_expand ( int needed ) : void
needed int
Résultat void
        void body_expand(int needed)
        {
            if(body_storage<=body_fill+needed)
            {
                body_storage+=(needed+1024);
                byte[] foo=new byte[body_storage];
                Array.Copy(body_data, 0, foo, 0, body_data.Length);
                body_data=foo;
            }
        }