summaryrefslogtreecommitdiff
path: root/libguile/bytevectors.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-06 17:46:06 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-14 16:14:17 +0100
commite441c34f1666921f6b15597c1aa3a50596a129d7 (patch)
tree8e7a4a443b800118ee034e00d5888a9d9044d7e6 /libguile/bytevectors.h
parent54ee636e57dd9416dea3e70be6e60f9bb9a22ebf (diff)
downloadguile-e441c34f1666921f6b15597c1aa3a50596a129d7.tar.gz
Add 'bytevector-slice'.
* module/rnrs/bytevectors/gnu.scm: New file. * am/bootstrap.am (SOURCES): Add it. * libguile/bytevectors.c (scm_bytevector_slice): New function. * libguile/bytevectors.h (scm_bytevector_slice): New declaration. * test-suite/tests/bytevectors.test ("bytevector-slice"): New tests. * doc/ref/api-data.texi (Bytevector Slices): New node.
Diffstat (limited to 'libguile/bytevectors.h')
-rw-r--r--libguile/bytevectors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/bytevectors.h b/libguile/bytevectors.h
index 980d6e267..593c94859 100644
--- a/libguile/bytevectors.h
+++ b/libguile/bytevectors.h
@@ -1,7 +1,7 @@
#ifndef SCM_BYTEVECTORS_H
#define SCM_BYTEVECTORS_H
-/* Copyright 2009,2011,2018
+/* Copyright 2009, 2011, 2018, 2023
Free Software Foundation, Inc.
This file is part of Guile.
@@ -52,6 +52,7 @@ SCM_API uint8_t scm_c_bytevector_ref (SCM, size_t);
SCM_API void scm_c_bytevector_set_x (SCM, size_t, uint8_t);
SCM_API SCM scm_make_bytevector (SCM, SCM);
+SCM_API SCM scm_bytevector_slice (SCM, SCM, SCM);
SCM_API SCM scm_native_endianness (void);
SCM_API SCM scm_bytevector_p (SCM);
SCM_API SCM scm_bytevector_length (SCM);