|
8 | 8 | #' These utilities handle pointer creation, buffer management, and memory operations |
9 | 9 | #' that are commonly needed when working with external libraries. |
10 | 10 | #' |
| 11 | +#' @return No return value. This is a documentation topic that groups the |
| 12 | +#' pointer and buffer utility functions described below. |
11 | 13 | #' @name tcc_ptr_utils |
12 | 14 | NULL |
13 | 15 |
|
@@ -274,62 +276,80 @@ tcc_write_i8 <- function(ptr, offset, value) { |
274 | 276 |
|
275 | 277 | #' Write an unsigned 8-bit integer |
276 | 278 | #' @inheritParams tcc_write_i8 |
| 279 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 280 | +#' unsigned 8-bit value into native memory at `ptr + offset`. |
277 | 281 | #' @export |
278 | 282 | tcc_write_u8 <- function(ptr, offset, value) { |
279 | 283 | invisible(.Call(RC_write_u8, ptr, offset, value)) |
280 | 284 | } |
281 | 285 |
|
282 | 286 | #' Write a signed 16-bit integer |
283 | 287 | #' @inheritParams tcc_write_i8 |
| 288 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 289 | +#' signed 16-bit value into native memory at `ptr + offset`. |
284 | 290 | #' @export |
285 | 291 | tcc_write_i16 <- function(ptr, offset, value) { |
286 | 292 | invisible(.Call(RC_write_i16, ptr, offset, value)) |
287 | 293 | } |
288 | 294 |
|
289 | 295 | #' Write an unsigned 16-bit integer |
290 | 296 | #' @inheritParams tcc_write_i8 |
| 297 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 298 | +#' unsigned 16-bit value into native memory at `ptr + offset`. |
291 | 299 | #' @export |
292 | 300 | tcc_write_u16 <- function(ptr, offset, value) { |
293 | 301 | invisible(.Call(RC_write_u16, ptr, offset, value)) |
294 | 302 | } |
295 | 303 |
|
296 | 304 | #' Write a signed 32-bit integer |
297 | 305 | #' @inheritParams tcc_write_i8 |
| 306 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 307 | +#' signed 32-bit value into native memory at `ptr + offset`. |
298 | 308 | #' @export |
299 | 309 | tcc_write_i32 <- function(ptr, offset, value) { |
300 | 310 | invisible(.Call(RC_write_i32, ptr, offset, value)) |
301 | 311 | } |
302 | 312 |
|
303 | 313 | #' Write an unsigned 32-bit integer |
304 | 314 | #' @inheritParams tcc_write_i8 |
| 315 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 316 | +#' unsigned 32-bit value into native memory at `ptr + offset`. |
305 | 317 | #' @export |
306 | 318 | tcc_write_u32 <- function(ptr, offset, value) { |
307 | 319 | invisible(.Call(RC_write_u32, ptr, offset, value)) |
308 | 320 | } |
309 | 321 |
|
310 | 322 | #' Write a signed 64-bit integer |
311 | 323 | #' @inheritParams tcc_write_i8 |
| 324 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 325 | +#' signed 64-bit value into native memory at `ptr + offset`. |
312 | 326 | #' @export |
313 | 327 | tcc_write_i64 <- function(ptr, offset, value) { |
314 | 328 | invisible(.Call(RC_write_i64, ptr, offset, value)) |
315 | 329 | } |
316 | 330 |
|
317 | 331 | #' Write an unsigned 64-bit integer |
318 | 332 | #' @inheritParams tcc_write_i8 |
| 333 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 334 | +#' unsigned 64-bit value into native memory at `ptr + offset`. |
319 | 335 | #' @export |
320 | 336 | tcc_write_u64 <- function(ptr, offset, value) { |
321 | 337 | invisible(.Call(RC_write_u64, ptr, offset, value)) |
322 | 338 | } |
323 | 339 |
|
324 | 340 | #' Write a 32-bit float |
325 | 341 | #' @inheritParams tcc_write_i8 |
| 342 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 343 | +#' 32-bit floating-point value into native memory at `ptr + offset`. |
326 | 344 | #' @export |
327 | 345 | tcc_write_f32 <- function(ptr, offset, value) { |
328 | 346 | invisible(.Call(RC_write_f32, ptr, offset, value)) |
329 | 347 | } |
330 | 348 |
|
331 | 349 | #' Write a 64-bit double |
332 | 350 | #' @inheritParams tcc_write_i8 |
| 351 | +#' @return `NULL` (invisibly). Called for its side effect of writing one |
| 352 | +#' 64-bit floating-point value into native memory at `ptr + offset`. |
333 | 353 | #' @export |
334 | 354 | tcc_write_f64 <- function(ptr, offset, value) { |
335 | 355 | invisible(.Call(RC_write_f64, ptr, offset, value)) |
|
0 commit comments