Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 195 for arraycopy (0.05 sec)

  1. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

                }
                System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
                dstIndex += str.length() * 2;
                dst[ dstIndex++ ] = (byte) '\0';
                dst[ dstIndex++ ] = (byte) '\0';
            }
            else {
                byte[] b = Strings.getOEMBytes(str, this.getConfig());
                System.arraycopy(b, 0, dst, dstIndex, b.length);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/TransCallNamedPipe.java

            if(( dst.length - dstIndex ) < pipeDataLen ) {
                if( log.level >= 3 )
                    log.println( "TransCallNamedPipe data too long for buffer" );
                return 0;
            }
            System.arraycopy( pipeData, pipeDataOff, dst, dstIndex, pipeDataLen );
            return pipeDataLen;
        }
        int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            }
            return bufferIndex - start;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            int start = bufferIndex;
    
            if (extendedSecurity) {
                System.arraycopy(buffer, bufferIndex, blob, 0, blob.length);
                bufferIndex += blob.length;
            }
            nativeOs = readString( buffer, bufferIndex );
            bufferIndex += stringWireLength( nativeOs, bufferIndex );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2FlushRequest.java

            int start = dstIndex;
            SMBUtil.writeInt2(24, dst, dstIndex);
            dstIndex += 2;
            dstIndex += 2; // Reserved1
            dstIndex += 4; // Reserved2
    
            System.arraycopy(this.fileId, 0, dst, dstIndex, 16);
            dstIndex += 16;
    
            return dstIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/MD4.java

            if (len >= partLen) {
                System.arraycopy(input, offset, buffer, bufferNdx, partLen);
    
    
                transform(buffer, 0);
    
                for (i = partLen; i + BLOCK_LENGTH - 1 < len; i+= BLOCK_LENGTH)
                    transform(input, offset + i);
                bufferNdx = 0;
            }
            // buffer remaining input
            if (i < len)
                System.arraycopy(input, offset + i, buffer, bufferNdx, len - i);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 9.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            int createContextLengthOffset = dstIndex;
            dstIndex += 4; // createContextLength
    
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, nameOffsetOffset);
    
            System.arraycopy(nameBytes, 0, dst, dstIndex, nameBytes.length);
            if ( nameBytes.length == 0 ) {
                // buffer must contain at least one byte
                dstIndex++;
            }
            else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 01 09:52:11 UTC 2019
    - 14.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponse.java

            if ( len > this.outputBuffer.length ) {
                throw new SMBProtocolDecodingException("Payload exceeds buffer size");
            }
            System.arraycopy(buffer, bufferIndex, this.outputBuffer, 0, len);
            return len;
    
        }
    
    
        @Override
        public String toString () {
            return new String("TransTransactNamedPipeResponse[" + super.toString() + "]");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComWrite.java

            int start = dstIndex;
    
            dst[dstIndex++] = (byte)0x01; /* BufferFormat */
            writeInt2( count, dst, dstIndex ); /* DataLength? */
            dstIndex += 2;
            System.arraycopy( b, off, dst, dstIndex, count );
            dstIndex += count;
    
            return dstIndex - start;
        }
        int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

            int offsetOffset = dstIndex;
            SMBUtil.writeInt2(data.length, dst, dstIndex + 2);
            dstIndex += 4;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
            System.arraycopy(data, 0, dst, dstIndex, data.length);
            dstIndex += data.length;
            return dstIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                System.arraycopy(buf, off, processedBytes, pos, len);
                pos += len;
                return true;
              }
    
              @Override
              public byte[] getResult() {
                return processedBytes;
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top