Writes any D array, or a D style chunck in a Stream.
The target Stream.
Any D array. Its size and its type determine how many bytes to write.
1 static immutable uint a = [0u,1u]; 2 MemoryStream str = construct!MemoryStream; 3 write(str, a); 4 assert(str.size == 8); 5 destruct(str);