Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for shnum (0.05 sec)

  1. src/runtime/pprof/elf.go

    	case 2: // big-endian
    		byteOrder = binary.BigEndian
    	}
    
    	var shnum int
    	var shoff, shentsize int64
    	switch buf[4] {
    	default:
    		return "", errBadELF
    	case 1: // 32-bit file header
    		shoff = int64(byteOrder.Uint32(buf[32:]))
    		shentsize = int64(byteOrder.Uint16(buf[46:]))
    		if shentsize != 40 {
    			return "", errBadELF
    		}
    		shnum = int(byteOrder.Uint16(buf[48:]))
    	case 2: // 64-bit file header
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 01:09:18 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/internal/buildid/note.go

    // at least 4 kB out, in data.
    func readELF(name string, f *os.File, data []byte) (buildid string, err error) {
    	// Assume the note content is in the data, already read.
    	// Rewrite the ELF header to set shoff and shnum to 0, so that we can pass
    	// the data to elf.NewFile and it will decode the Prog list but not
    	// try to read the section headers and the string table from disk.
    	// That's a waste of I/O when all we care about is the Prog list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 20:40:42 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/internal/buildid/buildid_test.go

    			var hdr elf.Header64
    			if err := binary.Read(bytes.NewReader(data), order, &hdr); err != nil {
    				t.Error(err)
    				continue
    			}
    
    			phoff := hdr.Phoff
    			phnum := int(hdr.Phnum)
    			phsize := uint64(hdr.Phentsize)
    
    			for i := 0; i < phnum; i++ {
    				var phdr elf.Prog64
    				if err := binary.Read(bytes.NewReader(data[phoff:]), order, &phdr); err != nil {
    					t.Error(err)
    					continue
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

     * default} methods. Instead, it inherits their default implementations. When those implementations
     * invoke methods, they invoke methods on the {@code ForwardingListeningExecutorService}.
     *
     * @author Isaac Shum
     * @since 10.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingListeningExecutorService extends ForwardingExecutorService
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

     * default} methods. Instead, it inherits their default implementations. When those implementations
     * invoke methods, they invoke methods on the {@code ForwardingListeningExecutorService}.
     *
     * @author Isaac Shum
     * @since 10.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingListeningExecutorService extends ForwardingExecutorService
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Callables.java

    import java.util.concurrent.Callable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to the {@link Callable} interface.
     *
     * @author Isaac Shum
     * @since 1.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Callables {
      private Callables() {}
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Callables.java

    import java.util.concurrent.Callable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to the {@link Callable} interface.
     *
     * @author Isaac Shum
     * @since 1.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Callables {
      private Callables() {}
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Callables}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible(emulated = true)
    public class CallablesTest extends TestCase {
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testReturning() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Callables}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible(emulated = true)
    public class CallablesTest extends TestCase {
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testReturning() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top