| ... | @@ -5528,7 +5528,7 @@ fn add(a: i32, b: i32) i32 { return a + b; } | ... | @@ -5528,7 +5528,7 @@ fn add(a: i32, b: i32) i32 { return a + b; } |
| 5528 | <p>Returns the field type of a struct or union.</p> | 5528 | <p>Returns the field type of a struct or union.</p> |
| 5529 | {#header_close#} | 5529 | {#header_close#} |
| 5530 | {#header_open|@memcpy#} | 5530 | {#header_open|@memcpy#} |
| 5531 | <pre><code class="zig">@memcpy(noalias dest: *u8, noalias source: *const u8, byte_count: usize)</code></pre> | 5531 | <pre><code class="zig">@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize)</code></pre> |
| 5532 | <p> | 5532 | <p> |
| 5533 | This function copies bytes from one region of memory to another. <code>dest</code> and | 5533 | This function copies bytes from one region of memory to another. <code>dest</code> and |
| 5534 | <code>source</code> are both pointers and must not overlap. | 5534 | <code>source</code> are both pointers and must not overlap. |
| ... | @@ -5546,7 +5546,7 @@ fn add(a: i32, b: i32) i32 { return a + b; } | ... | @@ -5546,7 +5546,7 @@ fn add(a: i32, b: i32) i32 { return a + b; } |
| 5546 | mem.copy(u8, dest[0...byte_count], source[0...byte_count]);</code></pre> | 5546 | mem.copy(u8, dest[0...byte_count], source[0...byte_count]);</code></pre> |
| 5547 | {#header_close#} | 5547 | {#header_close#} |
| 5548 | {#header_open|@memset#} | 5548 | {#header_open|@memset#} |
| 5549 | <pre><code class="zig">@memset(dest: *u8, c: u8, byte_count: usize)</code></pre> | 5549 | <pre><code class="zig">@memset(dest: [*]u8, c: u8, byte_count: usize)</code></pre> |
| 5550 | <p> | 5550 | <p> |
| 5551 | This function sets a region of memory to <code>c</code>. <code>dest</code> is a pointer. | 5551 | This function sets a region of memory to <code>c</code>. <code>dest</code> is a pointer. |
| 5552 | </p> | 5552 | </p> |