MCPcopy Create free account
hub / github.com/InsightIM/Tok-Android / set_bits

Function set_bits

app/src/main/cpp/audio.c:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11int error;
12
13static inline void set_bits(uint8_t *bytes, int32_t bitOffset, int32_t value) {
14 bytes += bitOffset / 8;
15 bitOffset %= 8;
16 *((int32_t *) bytes) |= (value << bitOffset);
17}
18
19JNIEXPORT jint Java_com_client_tok_media_recorder_audio_OpusAudioRecorder_startRecord(JNIEnv *env, jclass clazz, jstring path) {
20 const char *pathStr = (*env)->GetStringUTFChars(env, path, 0);

Calls

no outgoing calls

Tested by

no test coverage detected