Lines Matching refs:ibuff
38 int format_str(size_t iBytes, const char *ibuff, size_t ibuff_siz, char *obuff, in format_str() argument
46 (ibuff == NULL) && (ibuff_siz == 0) && in format_str()
52 if ((ibuff == NULL) || (obuff == NULL) || (iBytes < 1)) in format_str()
63 sprintf(buff, "%02X ", *(ibuff + i)); in format_str()
76 (isprint(*(ibuff + i))) ? *(ibuff + i) : '.'); in format_str()
83 int format_raw(size_t iBytes, const char *ibuff, char *obuff, size_t obuff_siz) in format_raw() argument
89 if ((iBytes == 0) && (ibuff == NULL) && in format_raw()
95 if ((ibuff == NULL) || (obuff == NULL) || (iBytes < 1)) in format_raw()
102 sprintf(buff, "%02X", *(ibuff + i)); in format_raw()
113 char *ibuff, *obuff, *buff_curr; in dump_data() local
134 if ((ibuff = (char *)ALLOC(ibuff_siz)) == NULL) { in dump_data()
139 FREE(ibuff); in dump_data()
146 memcpy(ibuff, buff_curr, ibuff_siz); in dump_data()
151 memcpy(ibuff, buff_curr, TotalRemainingBytes); in dump_data()
157 format_str(NumBytes, ibuff, ibuff_siz, obuff, in dump_data()
162 format_raw(NumBytes, ibuff, obuff, obuff_siz); in dump_data()
166 FREE(ibuff); in dump_data()
171 FREE(ibuff); in dump_data()