Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for _seek (0.15 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

     *
     */
    public class SmbComSeek extends ServerMessageBlock {
    
        /**
         * @param config
         * @param fid
         */
        public SmbComSeek ( Configuration config, int fid ) {
            super(config, SMB_COM_SEEK);
            this.fid = fid;
        }
    
        private int fid;
        private int mode;
        private long offset;
    
    
        /**
         * @param fid
         *            the fid to set
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/operand_test.go

    	{"X2", "X2"},
    	{"X3", "X3"},
    	{"X4", "X4"},
    	{"X5", "X5"},
    	{"X6", "X6"},
    	{"X7", "X7"},
    	{"X8", "X8"},
    	{"X9", "X9"},
    	{"_expand_key_128<>(SB)", "_expand_key_128<>(SB)"},
    	{"_seek<>(SB)", "_seek<>(SB)"},
    	{"a2+16(FP)", "a2+16(FP)"},
    	{"addr2+24(FP)", "addr2+24(FP)"},
    	{"asmcgocall<>(SB)", "asmcgocall<>(SB)"},
    	{"b+24(FP)", "b+24(FP)"},
    	{"b_len+32(FP)", "b_len+32(FP)"},
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        /**
         * 
         */
        public static final byte SMB_COM_CHECK_DIRECTORY = (byte) 0x10;
    
        /**
         * 
         */
        public static final byte SMB_COM_SEEK = (byte) 0x12;
    
        /**
         * 
         */
        public static final byte SMB_COM_LOCKING_ANDX = (byte) 0x24;
    
        /**
         * 
         */
        public static final byte SMB_COM_TRANSACTION = (byte) 0x25;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 32.7K bytes
    - Viewed (0)
  4. src/bytes/reader_test.go

    		{seek: io.SeekCurrent, off: 1, wantpos: 1<<33 + 1, readerr: io.EOF},
    		{seek: io.SeekStart, n: 5, want: "01234"},
    		{seek: io.SeekCurrent, n: 5, want: "56789"},
    		{seek: io.SeekEnd, off: -1, n: 1, wantpos: 9, want: "9"},
    	}
    
    	for i, tt := range tests {
    		pos, err := r.Seek(tt.off, tt.seek)
    		if err == nil && tt.seekerr != "" {
    			t.Errorf("%d. want seek error %q", i, tt.seekerr)
    			continue
    		}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    		// io.Seeker, but calling Seek always returns an error and performs
    		// no action. Thus, we try an innocent seek to the current position
    		// to see if Seek is really supported.
    		pos1, err := sr.Seek(0, io.SeekCurrent)
    		if pos1 >= 0 && err == nil {
    			// Seek seems supported, so perform the real Seek.
    			pos2, err := sr.Seek(n-1, io.SeekCurrent)
    			if pos2 < 0 || err != nil {
    				return err
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "r") ) {
                        raf.seek(10);
                        Assert.assertEquals(-1, raf.read());
                    }
    
                    byte[] buf = new byte[4];
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "r") ) {
                        raf.seek(6);
                        Assert.assertEquals(2, raf.read(buf));
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  7. fastapi/datastructures.py

            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().read(size)
    
        async def seek(
            self,
            offset: Annotated[
                int,
                Doc(
                    """
                    The position in bytes to seek to in the file.
                    """
                ),
            ],
        ) -> None:
            """
            Move to a position in the file.
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbRandomAccess.java

    
        /**
         * Current position in file
         * 
         * @return current position
         */
        long getFilePointer ();
    
    
        /**
         * Seek to new position
         * 
         * @param pos
         */
        void seek ( long pos );
    
    
        /**
         * Get the current file length
         * 
         * @return file length
         * @throws SmbException
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  9. src/bytes/reader.go

    	return nil
    }
    
    // Seek implements the [io.Seeker] interface.
    func (r *Reader) Seek(offset int64, whence int) (int64, error) {
    	r.prevRune = -1
    	var abs int64
    	switch whence {
    	case io.SeekStart:
    		abs = offset
    	case io.SeekCurrent:
    		abs = r.i + offset
    	case io.SeekEnd:
    		abs = int64(len(r.s)) + offset
    	default:
    		return 0, errors.New("bytes.Reader.Seek: invalid whence")
    	}
    	if abs < 0 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. docs/de/docs/reference/uploadfile.md

        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
                - write
                - seek
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:17:09 GMT 2024
    - 495 bytes
    - Viewed (0)
Back to top