Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 343 for op_set (0.06 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt

      contentType: MediaType?,
      offset: Int,
      byteCount: Int,
    ): RequestBody {
      checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong())
      return object : RequestBody() {
        override fun contentType() = contentType
    
        override fun contentLength() = byteCount.toLong()
    
        override fun writeTo(sink: BufferedSink) {
          sink.write(this@commonToRequestBody, offset, byteCount)
        }
      }
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. docs_src/sql_databases/tutorial001_an.py

        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ) -> List[Hero]:
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}")
    def read_hero(hero_id: int, session: SessionDep) -> Hero:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    }
    
    // ObjectToPartOffset - translate offset of an object to offset of its individual part.
    func (fi FileInfo) ObjectToPartOffset(ctx context.Context, offset int64) (partIndex int, partOffset int64, err error) {
    	if offset == 0 {
    		// Special case - if offset is 0, then partIndex and partOffset are always 0.
    		return 0, 0, nil
    	}
    	partOffset = offset
    	// Seek until object offset maps to a particular part offset.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/HMACT64.java

            md5.update(opad);
            return md5.digest(digest);
        }
    
        protected int engineDigest(byte[] buf, int offset, int len) {
            byte[] digest = md5.digest();
            md5.update(opad);
            md5.update(digest);
            try {
                return md5.digest(buf, offset, len);
            } catch (Exception ex) {
                throw new IllegalStateException();
            }
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/HMACT64.java

            return this.md5.digest(digest);
        }
    
    
        @Override
        protected int engineDigest ( byte[] buf, int offset, int len ) {
            byte[] digest = this.md5.digest();
            this.md5.update(this.opad);
            this.md5.update(digest);
            try {
                return this.md5.digest(buf, offset, len);
            }
            catch ( Exception ex ) {
                throw new IllegalStateException();
            }
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  6. docs_src/sql_databases/tutorial002.py

        return db_hero
    
    
    @app.get("/heroes/", response_model=List[HeroPublic])
    def read_heroes(
        session: Session = Depends(get_session),
        offset: int = 0,
        limit: int = Query(default=100, le=100),
    ):
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}", response_model=HeroPublic)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. docs_src/sql_databases/tutorial002_an_py310.py

        session.refresh(db_hero)
        return db_hero
    
    
    @app.get("/heroes/", response_model=list[HeroPublic])
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ):
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}", response_model=HeroPublic)
    def read_hero(hero_id: int, session: SessionDep):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                int offset = 64;
                writeSecurityBuffer(type3, 12, offset, lmResponse);
                offset += lmLength;
                writeSecurityBuffer(type3, 20, offset, ntResponse);
                offset += ntLength;
                writeSecurityBuffer(type3, 28, offset, domain);
                offset += domainLength;
                writeSecurityBuffer(type3, 36, offset, user);
                offset += userLength;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.9K bytes
    - Viewed (0)
  9. cmd/ftp-server-driver.go

    			obj.Close()
    		}
    	}()
    
    	_, err = obj.Seek(offset, io.SeekStart)
    	if err != nil {
    		return 0, nil, err
    	}
    
    	info, err := obj.Stat()
    	if err != nil {
    		return 0, nil, err
    	}
    	n = info.Size - offset
    	return n, obj, nil
    }
    
    // PutFile implements ftpDriver
    func (driver *ftpDriver) PutFile(ctx *ftp.Context, objPath string, data io.Reader, offset int64) (n int64, err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/IoTestCase.java

        return newPreFilledByteArray(0, size);
      }
    
      /** Returns a byte array of length size that has values offset .. offset + size - 1. */
      static byte[] newPreFilledByteArray(int offset, int size) {
        byte[] array = new byte[size];
        for (int i = 0; i < size; i++) {
          array[i] = (byte) (offset + i);
        }
        return array;
      }
    
      private static void copy(URL url, File file) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top