Lines Matching refs:size
22 enc_unpack(pTHX_ U8 **sp,U8 *e,STRLEN size,U8 endian)
26 if (s+size > e) {
55 enc_pack(pTHX_ SV *result,STRLEN size,U8 endian,UV value)
57 U8 *d = (U8 *)SvGROW(result,SvCUR(result)+size+1);
62 SvCUR_set(result,SvCUR(result)+size);
63 while (size--) {
70 SvCUR_set(result,SvCUR(result)+size);
72 while (size--) {
98 int size = SvIV(attr("size", 4));
108 if (!endian && s+size <= e) {
110 endian = (size == 4) ? 'N' : 'n';
111 bom = enc_unpack(aTHX_ &s,e,size,endian);
132 while (s < e && s+size <= e) {
133 UV ord = enc_unpack(aTHX_ &s,e,size,endian);
135 if (size != 4 && invalid_ucs2(ord)) {
142 if (s+size <= e) {
144 enc_unpack(aTHX_ &s,e,size,endian);
155 if (s+size > e) {
157 s -= size; /* back up to 1st half */
160 lo = enc_unpack(aTHX_ &s,e,size,endian);
201 int size = SvIV(attr("size", 4));
210 endian = (size == 4) ? 'N' : 'n';
211 enc_pack(aTHX_ result,size,endian,BOM_BE);
223 if (size != 4 && invalid_ucs2(ord)) {
230 enc_pack(aTHX_ result,size,endian,FBCHAR);
234 enc_pack(aTHX_ result,size,endian,hi);
235 enc_pack(aTHX_ result,size,endian,lo);
240 enc_pack(aTHX_ result,size,endian,FBCHAR);
244 enc_pack(aTHX_ result,size,endian,ord);