Search Options

Results per page
Sort
Preferred Languages
Advance

Results 5361 - 5370 of 6,120 for stringy (0.1 sec)

  1. internal/ringbuffer/README.md

    )
    
    func main() {
    	rb := ringbuffer.New(1024)
    
    	// write
    	rb.Write([]byte("abcd"))
    	fmt.Println(rb.Length())
    	fmt.Println(rb.Free())
    
    	// read
    	buf := make([]byte, 4)
    	rb.Read(buf)
    	fmt.Println(string(buf))
    }
    ```
    
    It is possible to use an existing buffer with by replacing `New` with `NewBuffer`.
    
    
    # Blocking vs Non-blocking
    
    The default behavior of the ring buffer is non-blocking, 
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import org.junit.jupiter.api.Test
    
    class MediaTypeJvmTest : MediaTypeGetTest() {
      override fun MediaType.charsetName(): String? = this.charset()?.name()
    
      @Test fun testCharsetNameIsDoubleQuotedAndSingleQuotedAndroid() {
        val mediaType = "text/plain;charset=\"'utf-8'\"".toMediaType()
        if (isAndroid) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/eventbus/AsyncEventBus.java

       * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut
       *     down the executor after the last event has been posted to this event bus.
       */
      public AsyncEventBus(String identifier, Executor executor) {
        super(identifier, executor, Dispatcher.legacyAsync(), LoggingHandler.INSTANCE);
      }
    
      /**
       * Creates a new AsyncEventBus that will use {@code executor} to dispatch events.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/job/PurgeThumbnailJob.java

    public class PurgeThumbnailJob {
        private static final Logger logger = LogManager.getLogger(PurgeThumbnailJob.class);
    
        private long expiry = 30 * 24 * 60 * 60 * 1000L;
    
        public String execute() {
            try {
                final long count = ComponentUtil.getThumbnailManager().purge(getExpiry());
                return "Deleted " + count + " thumbnail files.";
            } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. internal/disk/disk_unix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"syscall"
    )
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	st1 := syscall.Stat_t{}
    	st2 := syscall.Stat_t{}
    
    	if err := syscall.Stat(disk1, &st1); err != nil {
    		return false, err
    	}
    
    	if err := syscall.Stat(disk2, &st2); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverException.java

        private static final long serialVersionUID = 7252294837746943917L;
    
        /**
         * @param message the message for the exception
         * @param e the exception itself
         */
        public ArtifactResolverException(String message, Exception e) {
            super(message, e);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 02 21:26:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataSource.java

    /**
     * Provides some metadata operations, like querying the remote repository for a list of versions available for an
     * artifact.
     *
     */
    @Deprecated
    public interface MetadataSource {
        String ROLE = MetadataSource.class.getName();
    
        MetadataResolution retrieve(
                ArtifactMetadata artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/Log4j2Configuration.java

    /**
     * Configuration for slf4j-log4j2.
     *
     * @since 3.1.0
     */
    public class Log4j2Configuration extends BaseSlf4jConfiguration {
        @Override
        public void setRootLoggerLevel(Level level) {
            String value;
            switch (level) {
                case DEBUG:
                    value = "debug";
                    break;
    
                case INFO:
                    value = "info";
                    break;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. clause/select_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestSelect(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}},
    			"SELECT * FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Select{
    				Columns: []clause.Column{clause.PrimaryColumn},
    			}, clause.From{}},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 18 01:06:43 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NewIncubatingAPIRule.java

    import japicmp.model.JApiMethod;
    import me.champeau.gradle.japicmp.report.Violation;
    
    import java.util.Map;
    
    public class NewIncubatingAPIRule extends AbstractGradleViolationRule {
    
        public NewIncubatingAPIRule(Map<String, Object> params) {
            super(params);
        }
    
        @Override
        public Violation maybeViolation(final JApiCompatibility member) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top