Lines Matching refs:signatureLength
47 int32_t signatureLength; member
55 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U… in ucbuf_autodetect_fs() argument
66 *cp = ucnv_detectUnicodeSignature(start, numRead, signatureLength, error); in ucbuf_autodetect_fs()
70 if (*signatureLength > 0) { in ucbuf_autodetect_fs()
71 T_FileStream_read(in, start, *signatureLength); in ucbuf_autodetect_fs()
85 ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, NULL, FALSE, error); in ucbuf_autodetect_fs()
86 *signatureLength = (int32_t)(pStart - start); in ucbuf_autodetect_fs()
134 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,… in ucbuf_autodetect() argument
151 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) { in ucbuf_autodetect()
480 buf->signatureLength=0; in ucbuf_open()
483 ucbuf_autodetect_fs(in,cp,&buf->conv,&buf->signatureLength,error); in ucbuf_open()
486 ucbuf_autodetect_fs(in,&knownCp,&buf->conv,&buf->signatureLength,error); in ucbuf_open()
501 buf->remaining=fileSize-buf->signatureLength; in ucbuf_open()
505 … buf->bufCapacity=buf->remaining+buf->signatureLength+1/*for terminating nul*/; in ucbuf_open()
584 buf->remaining=T_FileStream_size(buf->in)-buf->signatureLength; in ucbuf_rewind()
587 if(buf->signatureLength>0) { in ucbuf_rewind()
595 numRead=T_FileStream_read(buf->in, start, buf->signatureLength); in ucbuf_rewind()
606 …if(U_SUCCESS(*error) && (numRead!=buf->signatureLength || pTarget!=(target+1) || target[0]!=0xfeff… in ucbuf_rewind()
618 return (T_FileStream_size(buf->in)-buf->signatureLength)/ucnv_getMinCharSize(buf->conv); in ucbuf_size()