From d12fc5a252c953eeb43530424c0154cec4ab53ec Mon Sep 17 00:00:00 2001 From: demotomohiro Date: Fri, 12 Apr 2024 06:14:14 +0000 Subject: [PATCH] deploy: e01762eaef61388247c5dd43e736791dde4efa8c --- bitwiseCopy.html | 2 +- expandFirst.html | 2 +- namedWhile.html | 2 +- reinterpretPtr.html | 106 ++++++++++++++++++++++++++++++++++++++++ reinterpretPtr.idx | 2 + replaceNimNodeTree.html | 2 +- setLambda.html | 2 +- staticDeque.html | 2 +- staticSeq.html | 2 +- theindex.html | 8 ++- withAliases.html | 2 +- 11 files changed, 122 insertions(+), 10 deletions(-) create mode 100644 reinterpretPtr.html create mode 100644 reinterpretPtr.idx diff --git a/bitwiseCopy.html b/bitwiseCopy.html index 2cab513..86737b4 100644 --- a/bitwiseCopy.html +++ b/bitwiseCopy.html @@ -127,7 +127,7 @@

Procs

diff --git a/expandFirst.html b/expandFirst.html index ec5fff2..0584c1a 100644 --- a/expandFirst.html +++ b/expandFirst.html @@ -132,7 +132,7 @@

Templates

diff --git a/namedWhile.html b/namedWhile.html index b3e46c8..40b0088 100644 --- a/namedWhile.html +++ b/namedWhile.html @@ -106,7 +106,7 @@

Macros

diff --git a/reinterpretPtr.html b/reinterpretPtr.html new file mode 100644 index 0000000..2853b69 --- /dev/null +++ b/reinterpretPtr.html @@ -0,0 +1,106 @@ + + + + + + + +src/littlesugar/reinterpretPtr + + + + + + + + + + + + +
+
+

src/littlesugar/reinterpretPtr

+
+
+
+ + +
+ +
+ Search: +
+
+ Group by: + +
+ + +
+
+ +
+ +

+
+

Procs

+
+
+
+
func reinterpretPtr[T: ptr](src: ptr or pointer): T
+
+ +

Reinterpret the given pointer to a different pointer type.

+

This is same to cast, but only accepts a pointer type for safer type convertion. But it still can be unsafe.

+ + +
+
+ +
+ +
+
+ +
+
+ + +
+
+ + + + + + diff --git a/reinterpretPtr.idx b/reinterpretPtr.idx new file mode 100644 index 0000000..a6be84d --- /dev/null +++ b/reinterpretPtr.idx @@ -0,0 +1,2 @@ +nimTitle reinterpretPtr reinterpretPtr.html module src/littlesugar/reinterpretPtr 0 +nim reinterpretPtr reinterpretPtr.html#reinterpretPtr proc reinterpretPtr[T: ptr](src: ptr or pointer): T 1 diff --git a/replaceNimNodeTree.html b/replaceNimNodeTree.html index 0611ab9..39a6d3c 100644 --- a/replaceNimNodeTree.html +++ b/replaceNimNodeTree.html @@ -98,7 +98,7 @@

Procs

diff --git a/setLambda.html b/setLambda.html index 2fd1c82..cfac923 100644 --- a/setLambda.html +++ b/setLambda.html @@ -102,7 +102,7 @@

Macros

diff --git a/staticDeque.html b/staticDeque.html index 90e3c04..0fec0c6 100644 --- a/staticDeque.html +++ b/staticDeque.html @@ -319,7 +319,7 @@

Templates

diff --git a/staticSeq.html b/staticSeq.html index 63bb384..4713885 100644 --- a/staticSeq.html +++ b/staticSeq.html @@ -357,7 +357,7 @@

Templates

diff --git a/theindex.html b/theindex.html index bfb6afe..b48cbb6 100644 --- a/theindex.html +++ b/theindex.html @@ -21,7 +21,7 @@
diff --git a/withAliases.html b/withAliases.html index ef9f751..6e1f965 100644 --- a/withAliases.html +++ b/withAliases.html @@ -200,7 +200,7 @@

Templates