Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 139 for writeQString (0.12 sec)

  1. internal/ioutil/ioutil_test.go

    	f, err := os.CreateTemp("", "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	name1 := f.Name()
    	defer os.Remove(name1)
    	f.WriteString("aaaaaaaaaa")
    	f.Close()
    
    	f, err = os.CreateTemp("", "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	name2 := f.Name()
    	defer os.Remove(name2)
    	f.WriteString("bbbbbbbbbb")
    	f.Close()
    
    	if err = AppendFile(name1, name2, false); err != nil {
    		t.Error(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComCreateDirectory.java

            return 0;
        }
    
    
        @Override
        protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            dst[ dstIndex++ ] = (byte) 0x04;
            dstIndex += writeString(this.path, dst, dstIndex);
    
            return dstIndex - start;
        }
    
    
        @Override
        protected int readParameterWordsWireFormat ( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2K bytes
    - Viewed (0)
  3. clause/update.go

    }
    
    // Name update clause name
    func (update Update) Name() string {
    	return "UPDATE"
    }
    
    // Build build update clause
    func (update Update) Build(builder Builder) {
    	if update.Modifier != "" {
    		builder.WriteString(update.Modifier)
    		builder.WriteByte(' ')
    	}
    
    	if update.Table.Name == "" {
    		builder.WriteQuoted(currentTable)
    	} else {
    		builder.WriteQuoted(update.Table)
    	}
    }
    
    // MergeClause merge update clause
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 09 09:07:00 UTC 2020
    - 737 bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            flags2 = 0;
            errorCode = 0;
            received = false;
            digest = null;
        }
        int writeString( String str, byte[] dst, int dstIndex ) {
            return writeString( str, dst, dstIndex, useUnicode );
        }
        int writeString( String str, byte[] dst, int dstIndex, boolean useUnicode ) {
            int start = dstIndex;
    
            try {
                if( useUnicode ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 21K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                }
                else {
                    // plain text
                    this.password = new byte[ ( pwAuth.getPassword().length() + 1 ) * 2];
                    this.passwordLength = writeString(pwAuth.getPassword(), this.password, 0);
                }
            }
            else {
                // no password in tree connect
                this.passwordLength = 1;
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                } else {
                    // plain text
                    password = new byte[(session.auth.password.length() + 1) * 2];
                    passwordLength = writeString( session.auth.password, password, 0 );
                }
            } else {
                // no password in tree connect
                passwordLength = 1;
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    			b.uint32(uint32(h.offset))
    		}
    		if _, err := w.cw.Write(buf[:]); err != nil {
    			return err
    		}
    		if _, err := io.WriteString(w.cw, h.Name); err != nil {
    			return err
    		}
    		if _, err := w.cw.Write(h.Extra); err != nil {
    			return err
    		}
    		if _, err := io.WriteString(w.cw, h.Comment); err != nil {
    			return err
    		}
    	}
    	end := w.cw.count
    
    	records := uint64(len(w.dir))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformation.java

            dstIndex += 2;
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            dst[dstIndex++] = (byte)0x00;
            dstIndex += writeString( path, dst, dstIndex );
    
            return dstIndex - start;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/rule.go

    		return r.Filter.Tag.String()
    	}
    	if len(r.Filter.And.Tags) != 0 {
    		var buf bytes.Buffer
    		for _, t := range r.Filter.And.Tags {
    			if buf.Len() > 0 {
    				buf.WriteString("&")
    			}
    			buf.WriteString(t.String())
    		}
    		return buf.String()
    	}
    	return ""
    }
    
    // Validate - validates the rule element
    func (r Rule) Validate() error {
    	if err := r.validateID(); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

            dstIndex += 2;
            writeInt2( informationLevel, dst, dstIndex );
            dstIndex += 2;
            writeInt4( searchStorageType, dst, dstIndex );
            dstIndex += 4;
            dstIndex += writeString( path + wildcard, dst, dstIndex );
    
            return dstIndex - start;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.4K bytes
    - Viewed (0)
Back to top