Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 141 for size_t (0.65 sec)

  1. cmd/os-dirent_namelen_linux.go

    package cmd
    
    import (
    	"bytes"
    	"fmt"
    	"syscall"
    	"unsafe"
    )
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name))
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    	limit := dirent.Reclen - fixedHdr
    	if limit > nameBufLen {
    		limit = nameBufLen
    	}
    	// Avoid bugs in long file names
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/rpc.java

         * Security Identifier (SID) structure for DCE/RPC.
         * Represents a Windows security identifier used in RPC operations.
         */
        public static class sid_t extends NdrObject {
    
            /**
             * Default constructor for sid_t.
             */
            public sid_t() {
                // Default constructor
            }
    
            /**
             * The revision level of the SID structure.
             */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/rpc.java

         * Represents a Windows security identifier used for access control.
         */
        public static class sid_t extends NdrObject {
    
            /**
             * Default constructor for sid_t.
             */
            public sid_t() {
                // Default constructor
            }
    
            /** The revision level of the SID structure */
            public byte revision;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

            public LsarDomainInfo() {
                // Default constructor
            }
    
            /** Domain name. */
            public rpc.unicode_string name;
            /** Domain security identifier. */
            public rpc.sid_t sid;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_short(name.length);
                _dst.enc_ndr_short(name.maximum_length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 42.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            assertEquals(expectedSize, request.size());
        }
    
        @Test
        @DisplayName("Test size calculation with empty path")
        void testSizeWithEmptyPath() {
            request = new Smb2CreateRequest(mockConfig, "");
    
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 56;
            expectedSize += 8; // size8(1) - empty name gets 1 byte
            expectedSize = ((expectedSize + 7) / 8) * 8; // size8(size)
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SID.java

                    }
                }
            }
        }
    
        /**
         * Converts an RPC sid_t structure to a byte array.
         *
         * @param sid the RPC sid_t structure to convert
         * @return byte array representation of the SID
         */
        public static byte[] toByteArray(final rpc.sid_t sid) {
            final byte[] dst = new byte[1 + 1 + 6 + sid.sub_authority_count * 4];
            int di = 0;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrOpenDomain.java

         * @param sid the security identifier of the domain
         * @param domainHandle the domain handle to be populated
         */
        public MsrpcSamrOpenDomain(final SamrPolicyHandle handle, final int access, final rpc.sid_t sid, final SamrDomainHandle domainHandle) {
            super(handle, access, sid, domainHandle);
            ptype = 0;
            flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            return new Smb2LeaseBreakResponse(tc.getConfig());
        }
    
        @Override
        public int size() {
            return size8(Smb2Constants.SMB2_HEADER_LENGTH + STRUCTURE_SIZE);
        }
    
        @Override
        protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
            int start = dstIndex;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java

            return new Smb2TreeDisconnectResponse(tc.getConfig());
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
        public int size() {
            return size8(Smb2Constants.SMB2_HEADER_LENGTH + 4);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

        /**
         * Constructor that may alter behaviour of this listener.
         *
         * @param delegate The delegate that should run on single thread.
         * @param queueSize The event queue size (default {@code 1024}).
         * @param batchMaxSize The maximum batch size delegate should receive (default {@code 500}).
         * @param blockOnLastEvent Should this listener block on last transfer end (completed or corrupted) block? (default {@code true}).
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Feb 06 11:28:05 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top