MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / initWorkArea

Method initWorkArea

java/com/jcraft/jzlib/InfTree.java:502–517  ·  view source on GitHub ↗
(int vsize)

Source from the content-addressed store, hash-verified

500 }
501
502 private void initWorkArea(int vsize){
503 if(hn==null){
504 hn=new int[1];
505 v=new int[vsize];
506 c=new int[BMAX+1];
507 r=new int[3];
508 u=new int[BMAX];
509 x=new int[BMAX+1];
510 }
511 if(v.length<vsize){ v=new int[vsize]; }
512 for(int i=0; i<vsize; i++){v[i]=0;}
513 for(int i=0; i<BMAX+1; i++){c[i]=0;}
514 for(int i=0; i<3; i++){r[i]=0;}
515 System.arraycopy(c, 0, u, 0, BMAX);
516 System.arraycopy(c, 0, x, 0, BMAX+1);
517 }
518}

Callers 2

inflate_trees_bitsMethod · 0.95
inflate_trees_dynamicMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected