MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfWriteBitmapExtBlock

Function adfWriteBitmapExtBlock

dep/adflib/src/adf_bitm.c:519–535  ·  view source on GitHub ↗

* adfWriteBitmapExtBlock * */

Source from the content-addressed store, hash-verified

517 *
518 */
519RETCODE
520adfWriteBitmapExtBlock(struct Volume* vol, SECTNUM nSect, struct bBitmapExtBlock* bitme)
521{
522 uint8_t buf[LOGICAL_BLOCK_SIZE];
523
524 memcpy(buf,bitme, LOGICAL_BLOCK_SIZE);
525#ifdef LITT_ENDIAN
526 /* little to big */
527 swapEndian(buf, SWBL_BITMAPE);
528#endif
529
530/* dumpBlock((uint8_t*)buf);*/
531 if (adfWriteBlock(vol, nSect, (uint8_t*)buf)!=RC_OK)
532 return RC_ERROR;
533
534 return RC_OK;
535}
536
537
538/*

Callers 1

adfWriteNewBitmapFunction · 0.85

Calls 2

swapEndianFunction · 0.85
adfWriteBlockFunction · 0.85

Tested by

no test coverage detected