Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.76 KB

ns-winnt-file_segment_element.md

File metadata and controls

61 lines (49 loc) · 1.76 KB
UID title description ms.date ms.topic targetos req.construct-type req.ddi-compliance req.dll req.header req.include-header req.kmdf-ver req.lib req.max-support req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NS:winnt._FILE_SEGMENT_ELEMENT
FILE_SEGMENT_ELEMENT
The FILE_SEGMENT_ELEMENT structure represents a segment buffer structure for scatter/gather read/write actions.
08/03/2022
language-reference
Windows
structure
winnt.h
FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT
apiref
HeaderDef
winnt.h
_FILE_SEGMENT_ELEMENT
FILE_SEGMENT_ELEMENT
winnt/_FILE_SEGMENT_ELEMENT
winnt/FILE_SEGMENT_ELEMENT
c++

FILE_SEGMENT_ELEMENT structure

-description

Represents a segment of an I/O buffer for scatter/gather read/write actions.

-struct-fields

-field Buffer

A pointer to the data for the scatter/gather read/write action.

Assigning a pointer to the Buffer member will sign-extend the value if the code is compiled as 32-bits; this can break large-address aware applications running on systems configured with 4-Gigabyte Tuning or running under WOW64 on 64-bit Windows. Therefore, use the PtrToPtr64 macro when assigning pointers to Buffer.

-field Alignment

An integer representation of the Buffer. The system uses this member to validate that the buffer is properly aligned. Applications typically operate on the Buffer member.

-remarks

-see-also

WriteFileGather function, ReadFileScatter function