Enable raw writing of buffer data to a handle

Enable raw writing of buffer data to a handle. (For example if writing to a struct or array of structs)