mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Add magic toOpenArrayChar (#22751)
Should help with stuff like the checksums package which only takes `openArray[char]` Co-authored-by: SirOlaf <>
This commit is contained in:
@@ -2752,6 +2752,9 @@ proc toOpenArrayByte*(x: openArray[char]; first, last: int): openArray[byte] {.
|
||||
proc toOpenArrayByte*(x: seq[char]; first, last: int): openArray[byte] {.
|
||||
magic: "Slice".}
|
||||
|
||||
proc toOpenArrayChar*(x: openArray[byte]; first, last: int): openArray[char] {.
|
||||
magic: "Slice".}
|
||||
|
||||
when defined(genode):
|
||||
var componentConstructHook*: proc (env: GenodeEnv) {.nimcall.}
|
||||
## Hook into the Genode component bootstrap process.
|
||||
|
||||
Reference in New Issue
Block a user