NTFS_WRITE_SIGNIFICANT_BYTES

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_write_significant_bytes - write the significant bytes of a number  

SYNOPSIS

"SYNOPSIS"

int ntfs_write_significant_bytes (s8 * dst, const s8 * dst_max, const s64 n);  

ARGUMENTS

dst
destination buffer to write to
dst_max
pointer to last byte of destination buffer for bounds checking
n
number whose significant bytes to write
 

DESCRIPTION

Store in dst, the minimum bytes of the number n which are required to identify n unambiguously as a signed number, taking care not to exceed dest_max, the maximum position within dst to which we are allowed to write.

This is used when building the mapping pairs array of a runlist to compress a given logical cluster number (lcn) or a specific run length to the minumum size possible.

Return the number of bytes written on success. On error, i.e. the destination buffer dst is too small, return -ENOSPC.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:34 GMT, October 09, 2005