Lines Matching refs:byteword
315 function LittleEndian2Float($byteword) { argument
316 return BigEndian2Float(strrev($byteword));
321 function BigEndian2Float($byteword) { argument
326 $bitword = BigEndian2Bin($byteword);
329 switch (strlen($byteword) * 8) {
395 function BigEndian2Int($byteword, $synchsafe=false, $signed=false) { argument
397 $bytewordlen = strlen($byteword);
400 $intvalue = $intvalue | (ord($byteword[$i]) & 0x7F) << (($bytewordlen - 1 - $i) * 7);
402 $intvalue += ord($byteword[$i]) * pow(256, ($bytewordlen - 1 - $i));
428 function LittleEndian2Int($byteword, $signed=false) { argument
429 return BigEndian2Int(strrev($byteword), false, $signed);
434 function BigEndian2Bin($byteword) { argument
436 $bytewordlen = strlen($byteword);
438 $binvalue .= str_pad(decbin(ord($byteword[$i])), 8, '0', STR_PAD_LEFT);