MCPcopy Create free account
hub / github.com/christkv/node-git / skipdir

Function skipdir

lib/zlib/zlib.js:791–903  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

789 };
790
791function skipdir(){
792 var crc,
793 tmp = [],
794 compSize, size, os, i, c;
795
796 if ((gpflags & 8)) {
797 tmp[0] = readByte();
798 tmp[1] = readByte();
799 tmp[2] = readByte();
800 tmp[3] = readByte();
801
802 if (tmp[0] == parseInt("50",16) &&
803 tmp[1] == parseInt("4b",16) &&
804 tmp[2] == parseInt("07",16) &&
805 tmp[3] == parseInt("08",16))
806 {
807 crc = readByte();
808 crc |= (readByte()<<8);
809 crc |= (readByte()<<16);
810 crc |= (readByte()<<24);
811 } else {
812 crc = tmp[0] | (tmp[1]<<8) | (tmp[2]<<16) | (tmp[3]<<24);
813 }
814
815 compSize = readByte();
816 compSize |= (readByte()<<8);
817 compSize |= (readByte()<<16);
818 compSize |= (readByte()<<24);
819
820 size = readByte();
821 size |= (readByte()<<8);
822 size |= (readByte()<<16);
823 size |= (readByte()<<24);
824
825 if (debug)
826 util.debug("CRC:");
827 }
828
829 if (modeZIP)
830 nextFile();
831
832 tmp[0] = readByte();
833 if (tmp[0] != 8) {
834 if (debug)
835 util.debug("Unknown compression method!");
836 return 0;
837 }
838
839 gpflags = readByte();
840 if (debug){
841 if ((gpflags & ~(parseInt("1f",16))))
842 util.debug("Unknown flags set!");
843 }
844
845 readByte();
846 readByte();
847 readByte();
848 readByte();

Callers 1

nextFileFunction · 0.85

Calls 3

readByteFunction · 0.85
nextFileFunction · 0.85
DeflateLoopFunction · 0.85

Tested by

no test coverage detected