Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for tempfile (1.16 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            decrypt = new byte[result.length];
            System.arraycopy(result, 0, decrypt, 0, result.length);
    
            int tempSize = decrypt.length - 24;
    
            byte[] output = new byte[tempSize];
            System.arraycopy(decrypt, 24, output, 0, tempSize);
    
            decrypt = output;
            return decrypt;
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  2. cmd/update_test.go

    func TestGetHelmVersion(t *testing.T) {
    	createTempFile := func(content string) string {
    		tmpfile, err := os.CreateTemp("", "helm-testfile-")
    		if err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    		if _, err = tmpfile.WriteString(content); err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    		if err = tmpfile.Close(); err != nil {
    			t.Fatalf("Unable to create temporary file. %s", err)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/archive/tar/tar_test.go

    	"time"
    )
    
    type testError struct{ error }
    
    type fileOps []any // []T where T is (string | int64)
    
    // testFile is an io.ReadWriteSeeker where the IO operations performed
    // on it must match the list of operations in ops.
    type testFile struct {
    	ops fileOps
    	pos int64
    }
    
    func (f *testFile) Read(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, nil
    	}
    	if len(f.ops) == 0 {
    		return 0, io.EOF
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
        byte[] dummyData = newPreFilledByteArray(chunkSize);
        try (FileOutputStream fos = new FileOutputStream(testFile)) {
          for (int i = 0; i < 500; i++) {
            fos.write(dummyData);
          }
        }
        try (ReadableByteChannel inChannel = new RandomAccessFile(testFile, "r").getChannel()) {
          ByteStreams.copy(inChannel, outChannel);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
        byte[] dummyData = newPreFilledByteArray(chunkSize);
        try (FileOutputStream fos = new FileOutputStream(testFile)) {
          for (int i = 0; i < 500; i++) {
            fos.write(dummyData);
          }
        }
        try (ReadableByteChannel inChannel = new RandomAccessFile(testFile, "r").getChannel()) {
          ByteStreams.copy(inChannel, outChannel);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  6. docs/bigdata/README.md

    ```
    scala> val file = sc.textFile("s3a://testbucket/testdata")
    file: org.apache.spark.rdd.RDD[String] = s3a://testbucket/testdata MapPartitionsRDD[1] at textFile at <console>:24
    
    scala> val counts = file.flatMap(line => line.split(" ")).map(word => (word, 1)).reduceByKey(_ + _)
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 14.7K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    			hdr     Header
    			wantErr error
    		}
    		testWrite struct { // Write(str) == (wantCnt, wantErr)
    			str     string
    			wantCnt int
    			wantErr error
    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/FileAttributesTest.java

     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.tests;
    
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNotEquals;
    import static org.junit.Assert.assertNotNull;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbEnumerationUtil.java

     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.UnknownHostException;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/DfsTest.java

     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.tests;
    
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNotEquals;
    import static org.junit.Assert.assertNotNull;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
Back to top