Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set::infinite::arithmetic(3pm) [debian man page]

Set::Infinite::Arithmetic(3pm)				User Contributed Perl Documentation			    Set::Infinite::Arithmetic(3pm)

       NAME

       Set::Infinite::Arithmetic - Scalar operations used by quantize() and offset()

       AUTHOR

       Flavio Soibelmann Glock - fglock@pucrs.br

       %_MODE hash of subs

	   $a->offset ( value => [1,2], mode => 'offset', unit => 'days' );

	   $a->offset ( value => [1,2, -5,-4], mode => 'offset', unit => 'days' );

       note: if mode = circle, then "-5" counts from end (like a Perl negative array index).

	   $a->offset ( value => [1,2], mode => 'offset', unit => 'days', strict => $a );

       option 'strict' will return intersection($a,offset). Default: none.

       %subs_offset2($object, $offset1, $offset2)

	   &{ $subs_offset2{$unit} } ($object, $offset1, $offset2);

       A hash of functions that return:

	   ($object+$offset1, $object+$offset2)

       in $unit context.

       Returned $object+$offset1, $object+$offset2 may be scalars or objects.

       %Offset_to_value($object, $offset)

       %Init_quantizer($object)

	   $Offset_to_value{$unit} ($object, $offset);

	   $Init_quantizer{$unit} ($object);

       Maps an 'offset value' to a 'value'

       A hash of functions that return ( int($object) + $offset ) in $unit context.

       Init_quantizer subroutines must be called before using subs_offset1 functions.

       int(object)+offset is a scalar.

       Offset_to_value is optimized for calling it multiple times on the same object, with different offsets. That's why there is a separate
       initialization subroutine.

       $self->{offset} is created on initialization. It is an index used by the memoization cache.

perl v5.10.0							    2008-06-21					    Set::Infinite::Arithmetic(3pm)

Check Out this Related Man Page

LSEEK(2)							System Calls Manual							  LSEEK(2)

NAME
lseek, tell - move read/write pointer SYNOPSIS
long lseek(fildes, offset, whence) long offset; long tell(fildes) DESCRIPTION
The file descriptor refers to a file open for reading or writing. The read (resp. write) pointer for the file is set as follows: If whence is 0, the pointer is set to offset bytes. If whence is 1, the pointer is set to its current location plus offset. If whence is 2, the pointer is set to the size of the file plus offset. The returned value is the resulting pointer location. The obsolete function tell(fildes) is identical to lseek(fildes, 0L, 1). Seeking far beyond the end of a file, then writing, creates a gap or `hole', which occupies no physical space and reads as zeros. SEE ALSO
open(2), creat(2), fseek(3) DIAGNOSTICS
-1 is returned for an undefined file descriptor, seek on a pipe, or seek to a position before the beginning of file. BUGS
Lseek is a no-op on character special files. ASSEMBLER
(lseek = 19.) (file descriptor in r0) sys lseek; offset1; offset2; whence Offset1 and offset2 are the high and low words of offset; r0 and r1 contain the pointer upon return. LSEEK(2)
Man Page