File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2525 * [ドットオペレータ](dot-operator.md)
2626 * [キャスト](casts.md)
2727 * [Transmutes](transmutes.md)
28- * [ Uninitialized Memory ] ( uninitialized.md )
28+ * [ 初期化されないメモリ ] ( uninitialized.md )
2929 * [チェックされるメモリ](checked-uninit.md)
3030 * [Drop Flags](drop-flags.md)
3131 * [Unchecked](unchecked-uninit.md)
Original file line number Diff line number Diff line change 1+ <!--
12# Working With Uninitialized Memory
3+ -->
24
5+ # 初期化されないメモリを扱う
6+
7+ <!--
38All runtime-allocated memory in a Rust program begins its life as
49*uninitialized*. In this state the value of the memory is an indeterminate pile
510of bits that may or may not even reflect a valid state for the type that is
611supposed to inhabit that location of memory. Attempting to interpret this memory
712as a value of *any* type will cause Undefined Behavior. Do Not Do This.
13+ -->
14+
15+ すべての Rust の、実行時にアロケートされるメモリは、最初に* 初期化されません* 。
16+ この状態では、メモリ上の値は、そのメモリ番地にあると想定される型の、正しい状態を
17+ 反映しているかもしれないし、していないかもしれないビットの無限の山です。
18+ このメモリを* いかなる* 型の値として解釈しようとしても、未定義動作を引き起こすでしょう。
19+ 絶対にしないでください。
820
21+ <!--
922Rust provides mechanisms to work with uninitialized memory in checked (safe) and
1023unchecked (unsafe) ways.
24+ -->
25+
26+ Rust では、初期化されていないメモリを扱う、チェックが入る (安全な) 方法と、
27+ チェックされない (アンセーフな) やり方があります。
You can’t perform that action at this time.
0 commit comments