p.s. the cast should probably be to immutable ubyte[]. I'm guessing without it, there is an automatic copy of the data being made.
No copy - you just get undefined behavior if you actually try to modify it!
Adam D. Ruppe via Digitalmars-d-learn Wed, 07 Feb 2018 07:00:41 -0800
p.s. the cast should probably be to immutable ubyte[]. I'm guessing without it, there is an automatic copy of the data being made.
No copy - you just get undefined behavior if you actually try to modify it!