Home | History | Annotate | Download | only in lib

Lines Matching refs:bytes

176 /* copies 'length' bytes from 'src' to 'dest'. (regions may be overlapping) no error checks! */
182 /* sets 'length' bytes starting at dest[0] to 'byte_val' */
273 /** allocates 'alloc_size' bytes at start of raw memory block ('raw_mem',raw_mem_size)
1045 /* caller must ensure that bytes[] has at least len allocated bytes */
1046 static picoos_bool LReadBytes(picoos_File f, picoos_uint8 bytes[],
1052 PICODBG_TRACE(("trying to read %i bytes",*len));
1054 res = picopal_fread_bytes(f->nf, (void *) &bytes[(0)], 1, (*len));
1073 static picoos_bool LWriteBytes(picoos_File f, const picoos_char bytes[], int * len) {
1080 res = picopal_fwrite_bytes(f->nf, (void *) bytes, 1, *len);
1210 /* Read next 'len' bytes from 'f' into 'bytes'; 'len' returns the
1211 number of bytes actually read (may be smaller than requested
1212 length if at end of file). bytes[] must be big enough to hold at least len bytes.
1214 picoos_bool picoos_ReadBytes(picoos_File f, picoos_uint8 bytes[],
1221 done = LReadBytes(f, bytes, len);
1223 DecryptBytes(f->key,picoos_MaxKeyLen,f->keyLen,origPos,bytes,(*len));
1249 /* Writes 'len' bytes from 'bytes' onto file 'f'; 'len' returns
1250 the number of bytes actually written. */
1251 picoos_bool picoos_WriteBytes(picoos_File f, const picoos_char bytes[], picoos_int32 * len) {
1255 done = LWriteBytes(f, bytes, len);
1287 'pos' bytes from beginning (first byte = byte 0). This
1317 /* Returns the length of the file in bytes. */
1330 /* Return full name of file 'f'. maxsize is the size of 'name[]' in bytes */
1457 done = done && (PICO_OK == picoos_read_le_uint32(f, &n32)); /* length of fmt chunk in bytes; must be 16 */
1467 done = done && (PICO_OK == picoos_read_le_uint32(f, &dataLength)); /* length of data chunk in bytes */
1928 /* check whether 'str' of length strlen matches contents in circular buffer buf, located in the first strlen bytes and ending
1969 * non-svox-header bytes for a customer-specific header and/or filling bytes for alignment */