.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "NTFS_WRITE_SIGNIFICANT_BYTES" "9" "09 October 2005" "" ""
.SH NAME
ntfs_write_significant_bytes \- write the significant bytes of a number
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_write_significant_bytes (s8 * \fIdst\fB, const s8 * \fIdst_max\fB, const s64 \fIn\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdst\fB\fR
destination buffer to write to
.TP
\fB\fIdst_max\fB\fR
pointer to last byte of destination buffer for bounds checking
.TP
\fB\fIn\fB\fR
number whose significant bytes to write
.SH "DESCRIPTION"
.PP
Store in \fIdst\fR, the minimum bytes of the number \fIn\fR which are required to
identify \fIn\fR unambiguously as a signed number, taking care not to exceed
\fIdest_max\fR, the maximum position within \fIdst\fR to which we are allowed to
write.
.PP
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.
.PP
Return the number of bytes written on success. On error, i.e. the
destination buffer \fIdst\fR is too small, return -ENOSPC.