MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / read_bit_array

Function read_bit_array

src/game/rom_decompression.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "zelda_game.h"
6
7uint8_t read_bit_array(std::span<const uint8_t> arr, size_t index) {
8 uint8_t byte = arr[index / 8];
9 uint8_t bit_index = index % 8;
10 return (byte >> (7 - bit_index)) & 1;
11}
12
13void naive_copy(std::span<uint8_t> dst, std::span<const uint8_t> src) {
14 for (size_t i = 0; i < src.size(); i++) {

Callers 1

mio0_decompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected