Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 905 for buffer (0.2 sec)

  1. src/bytes/buffer.go

    // The slice aliases the buffer content at least until the next buffer modification,
    // so immediate changes to the slice will affect the result of future reads.
    func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
    
    // AvailableBuffer returns an empty buffer with b.Available() capacity.
    // This buffer is intended to be appended to and
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	// Confirm that when Reader panics, the empty buffer remains empty
    	var buf2 Buffer
    	defer func() {
    		recover()
    		check(t, "TestReadFromPanicReader (2)", &buf2, "")
    	}()
    	buf2.ReadFrom(panicReader{panic: true})
    }
    
    func TestReadFromNegativeReader(t *testing.T) {
    	var b Buffer
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.h

    #ifndef TENSORFLOW_C_EXPERIMENTAL_NEXT_PLUGGABLE_DEVICE_TENSOR_PJRT_BUFFER_UTIL_H_
    #define TENSORFLOW_C_EXPERIMENTAL_NEXT_PLUGGABLE_DEVICE_TENSOR_PJRT_BUFFER_UTIL_H_
    
    #include "xla/pjrt/c/pjrt_c_api.h"
    #include "xla/pjrt/pjrt_c_api_client.h"
    #include "tensorflow/core/framework/tensor.h"
    
    namespace tensorflow {
    
    StatusOr<PJRT_Buffer*> GetPjRtCBufferFromTensor(const Tensor* tensor);
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 09 19:12:59 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      if (c_api_buffer == nullptr) {
        return absl::InternalError(
            "The PjRtBuffer in the tensor is not type PjRtCApiBuffer.");
      }
      return c_api_buffer->c_buffer();
    }
    
    absl::Status SetPjRtCBufferToTensor(PJRT_Buffer* c_buffer,
                                        xla::PjRtCApiClient* c_api_client,
                                        Tensor* tensor) {
      auto buffer = std::make_unique<xla::PjRtCApiBuffer>(c_api_client, c_buffer);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      av_tensor->SetBuffer(std::move(buffer));
    
      TF_ASSERT_OK_AND_ASSIGN(auto c_buffer, GetPjRtCBufferFromTensor(&tensor));
    
      EXPECT_THAT(c_buffer, NotNull());
    }
    
    TEST(TensorPjRtBufferUtilTest, SetPjRtCBufferToTensorNotAsyncValueTensor) {
      tensorflow::Tensor tensor(DT_FLOAT, {1});
      TF_ASSERT_OK_AND_ASSIGN(auto pjrt_client, xla::GetCApiClient(DEVICE_CPU));
      PJRT_Buffer* c_buffer = CreateCBuffer();
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

                    if (name.buffer == null) {
                        if (_name_buffers < 0 || _name_buffers > 0xFFFF) throw new NdrException( NdrException.INVALID_CONFORMANCE );
                        name.buffer = new short[_name_buffers];
                    }
                    _src = _src.derive(_name_bufferi);
                    for (int _i = 0; _i < _name_bufferl; _i++) {
                        name.buffer[_i] = (short)_src.dec_ndr_short();
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 33K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

                    if ( this.name.buffer == null ) {
                        if ( _name_buffers < 0 || _name_buffers > 0xFFFF )
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        this.name.buffer = new short[_name_buffers];
                    }
                    _src = _src.derive(_name_bufferi);
                    for ( int _i = 0; _i < _name_bufferl; _i++ ) {
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:40:13 GMT 2019
    - 35.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

        val buffer = Buffer()
        operator.read(6, buffer, 21)
        operator.read(36, buffer, 1)
        operator.read(5, buffer, 5)
        operator.read(28, buffer, 8)
        operator.read(17, buffer, 10)
        operator.read(36, buffer, 2)
        operator.read(2, buffer, 4)
        operator.write(0, buffer, buffer.size)
        operator.read(0, buffer, 12)
        operator.read(47, buffer, 3)
        operator.read(45, buffer, 2)
        operator.read(47, buffer, 3)
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/rpc.java

                        buffer = new short[_buffers];
                    }
                    _src = _src.derive(_bufferi);
                    for (int _i = 0; _i < _bufferl; _i++) {
                        buffer[_i] = (short)_src.dec_ndr_short();
                    }
                }
            }
        }
        public static class sid_t extends NdrObject {
    
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/rpc.java

                    _src.dec_ndr_long();
                    int _bufferl = _src.dec_ndr_long();
                    int _bufferi = _src.index;
                    _src.advance(2 * _bufferl);
    
                    if ( this.buffer == null ) {
                        if ( _buffers < 0 || _buffers > 0xFFFF )
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:40:13 GMT 2019
    - 8.8K bytes
    - Viewed (0)
Back to top