Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 127 for writeString (0.06 sec)

  1. cmd/batch-handlers_gen.go

    	// write "ID"
    	err = en.Append(0x86, 0xa2, 0x49, 0x44)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.ID)
    	if err != nil {
    		err = msgp.WrapError(err, "ID")
    		return
    	}
    	// write "User"
    	err = en.Append(0xa4, 0x55, 0x73, 0x65, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.User)
    	if err != nil {
    		err = msgp.WrapError(err, "User")
    		return
    	}
    	// write "Started"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/net/NetServerEnum2.java

            dstIndex += 2;
            SMBUtil.writeInt4(this.serverTypes, dst, dstIndex);
            dstIndex += 4;
            dstIndex += writeString(this.domain.toUpperCase(), dst, dstIndex, false);
            if (which == 1) {
                dstIndex += writeString(this.lastName.toUpperCase(), dst, dstIndex, false);
            }
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. cmd/background-newdisks-heal-ops_gen.go

    	err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Path)
    	if err != nil {
    		err = msgp.WrapError(err, "Path")
    		return
    	}
    	// write "Endpoint"
    	err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Endpoint)
    	if err != nil {
    		err = msgp.WrapError(err, "Endpoint")
    		return
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 20 15:42:49 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComQueryInformation.java

        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dst[dstIndex] = (byte) 0x04;
            dstIndex++;
            dstIndex += writeString(path, dst, dstIndex);
            return dstIndex - start;
        }
    
        @Override
        int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. cmd/common-main_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp(t.TempDir(), "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.content)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			value, err := readFromSecret(tmpfile.Name())
    			if err != nil && !testCase.expectedErr {
    				t.Error(err)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            void testWriteStringUnicode() {
                testBlock.setUseUnicode(true);
                byte[] buffer = new byte[100];
                String testString = "Test";
    
                int bytesWritten = testBlock.writeString(testString, buffer, 10);
    
                // Unicode strings are written as UTF-16LE with null terminator
                assertTrue(bytesWritten > testString.length());
                // First byte should be 'T' in UTF-16LE (0x54)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

        @BeforeEach
        void setUp() {
            // Mock the Configuration object
            mockConfig = mock(Configuration.class);
            // Define behavior for the OEM encoding, which is used by writeString
            when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name());
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly sets the command and path
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/SingletonContextTest.java

            // Test that jcifs.properties file is loaded
            Path jcifsPropertiesPath = tempDir.resolve("jcifs.properties");
            Files.writeString(jcifsPropertiesPath, "jcifs.smb.client.nativeOs=FileOS");
            System.setProperty("jcifs.properties", jcifsPropertiesPath.toString());
    
            SingletonContext.init(null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. clause/group_by.go

    	for idx, column := range groupBy.Columns {
    		if idx > 0 {
    			builder.WriteByte(',')
    		}
    
    		builder.WriteQuoted(column)
    	}
    
    	if len(groupBy.Having) > 0 {
    		builder.WriteString(" HAVING ")
    		Where{Exprs: groupBy.Having}.Build(builder)
    	}
    }
    
    // MergeClause merge group by clause
    func (groupBy GroupBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(GroupBy); ok {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Mar 30 10:28:09 UTC 2021
    - 1K bytes
    - Viewed (0)
  10. migrator/migrator.go

    	}
    
    	sql := new(strings.Builder)
    	sql.WriteString("CREATE ")
    	if option.Replace {
    		sql.WriteString("OR REPLACE ")
    	}
    	sql.WriteString("VIEW ")
    	m.QuoteTo(sql, name)
    	sql.WriteString(" AS ")
    
    	m.DB.Statement.AddVar(sql, option.Query)
    
    	if option.CheckOption != "" {
    		sql.WriteString(" ")
    		sql.WriteString(option.CheckOption)
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Jun 06 02:35:01 UTC 2025
    - 29.5K bytes
    - Viewed (0)
Back to top