Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,209 for Read (0.32 sec)

  1. internal/config/certs.go

    	certPEMBlock, err := os.ReadFile(certFile)
    	if err != nil {
    		return tls.Certificate{}, ErrTLSReadError(nil).Msg("Unable to read the public key: %s", err)
    	}
    	keyPEMBlock, err := os.ReadFile(keyFile)
    	if err != nil {
    		return tls.Certificate{}, ErrTLSReadError(nil).Msg("Unable to read the private key: %s", err)
    	}
    	key, rest := pem.Decode(keyPEMBlock)
    	if len(rest) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        }
    
    
        @Override
        public int read () throws SmbException {
            if ( read(this.tmp, 0, 1) == -1 ) {
                return -1;
            }
            return this.tmp[ 0 ] & 0xFF;
        }
    
    
        @Override
        public int read ( byte b[] ) throws SmbException {
            return read(b, 0, b.length);
        }
    
    
        @Override
        public int read ( byte b[], int off, int len ) throws SmbException {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharStreams.java

       * Returns the total number of chars read. Does not close the stream.
       *
       * @since 20.0
       */
      @CanIgnoreReturnValue
      public static long exhaust(Readable readable) throws IOException {
        long total = 0;
        long read;
        CharBuffer buf = createBuffer();
        while ((read = readable.read(buf)) != -1) {
          total += read;
          Java8Compatibility.clear(buf);
        }
        return total;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. docs_src/sql_databases/sql_app_py310/main.py

        return crud.create_user(db=db, user=user)
    
    
    @app.get("/users/", response_model=list[schemas.User])
    def read_users(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)):
        users = crud.get_users(db, skip=skip, limit=limit)
        return users
    
    
    @app.get("/users/{user_id}", response_model=schemas.User)
    def read_user(user_id: int, db: Session = Depends(get_db)):
        db_user = crud.get_user(db, user_id=user_id)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  5. tests/test_security_api_key_cookie_description.py

                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                        "summary": "Read Current User",
                        "operationId": "read_current_user_users_me_get",
                        "security": [{"APIKeyCookie": []}],
                    }
                }
            },
            "components": {
                "securitySchemes": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  6. tests/test_security_api_key_cookie_optional.py

                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                        "summary": "Read Current User",
                        "operationId": "read_current_user_users_me_get",
                        "security": [{"APIKeyCookie": []}],
                    }
                }
            },
            "components": {
                "securitySchemes": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/archive/zip/reader.go

    type dirReader struct {
    	err error
    }
    
    func (r *dirReader) Read([]byte) (int, error) {
    	return 0, r.err
    }
    
    func (r *dirReader) Close() error {
    	return nil
    }
    
    type checksumReader struct {
    	rc    io.ReadCloser
    	hash  hash.Hash32
    	nread uint64 // number of bytes read so far
    	f     *File
    	desr  io.Reader // if non-nil, where to read the data descriptor
    	err   error     // sticky error
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  8. tests/test_invalid_path_param.py

                title: str
    
            @app.get("/items/{id}")
            def read_items(id: List[Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: Tuple[Item, Item]):
                pass  # pragma: no cover
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jun 03 17:59:40 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(-1, in.read()); // additional read
        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyForSkipping() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->read_only_memory_region_ops = static_cast<TF_ReadOnlyMemoryRegionOps*>(
          plugin_memory_allocate(TF_READ_ONLY_MEMORY_REGION_OPS_SIZE));
      ops->read_only_memory_region_ops->cleanup =
          tf_read_only_memory_region::Cleanup;
      ops->read_only_memory_region_ops->data = tf_read_only_memory_region::Data;
      ops->read_only_memory_region_ops->length = tf_read_only_memory_region::Length;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top