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 @@

Index

- Modules: bitwiseCopy, expandFirst, namedWhile, replaceNimNodeTree, setLambda, staticDeque, staticSeq, withAliases.

API symbols

+ Modules: bitwiseCopy, expandFirst, namedWhile, reinterpretPtr, replaceNimNodeTree, setLambda, staticDeque, staticSeq, withAliases.

API symbols

`==`:
+
reinterpretPtr:
replace:
diff --git a/withAliases.html b/withAliases.html index ef9f751..6e1f965 100644 --- a/withAliases.html +++ b/withAliases.html @@ -200,7 +200,7 @@

Templates