Write one length prefixed, type tagged record to a stream unit.
Usage: call write_array(unit, values, err)
The unit must have been opened with access='stream' and
form='unformatted', for instance by serialize_open_write, and
write_header must already have been called on it. Zero sized arrays
and zero length strings are legal and produce a record header with
count == 0 and no payload.
Write an integer(int32) array record.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=default_int), | intent(in) | :: | unit | |||
| integer(kind=int32), | intent(in) | :: | values(:) | |||
| type(error_t), | intent(inout) | :: | err |
Write an integer(int64) array record.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=default_int), | intent(in) | :: | unit | |||
| integer(kind=int64), | intent(in) | :: | values(:) | |||
| type(error_t), | intent(inout) | :: | err |
Write a real(sp) array record.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=default_int), | intent(in) | :: | unit | |||
| real(kind=sp), | intent(in) | :: | values(:) | |||
| type(error_t), | intent(inout) | :: | err |
Write a real(dp) array record.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=default_int), | intent(in) | :: | unit | |||
| real(kind=dp), | intent(in) | :: | values(:) | |||
| type(error_t), | intent(inout) | :: | err |
Write a character scalar record. The stored count is the number of
characters, so a record of n characters occupies n payload bytes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=default_int), | intent(in) | :: | unit | |||
| character(len=*), | intent(in) | :: | text | |||
| type(error_t), | intent(inout) | :: | err |