- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for GetInfo (0.11 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
} @Test void testGetInfo() { // Test getInfo method when info is null response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); assertNull(response.getInfo()); } @Test void testGetInfoWithClass_Compatible() throws CIFSException { // Test getInfo with compatible classRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
// Should return at least to the end of the data assertTrue(result >= 158); // (50 + 300 + 8) - 200 assertNotNull(response.getInfo()); assertTrue(response.getInfo() instanceof FileInternalInfo); } @Test @DisplayName("Test multiple calls to getInfo return same instance") void testMultipleGetInfoCalls() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
} @Test @DisplayName("Test getInfo when info is null") void testGetInfoWhenNull() { response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO); assertNull(response.getInfo()); } @Test @DisplayName("Test getInfo with type when info is null") void testGetInfoWithTypeWhenNull() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
internal/disk/stat_netbsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "golang.org/x/sys/unix" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := unix.Statvfs_t{} if err = unix.Statvfs(path, &s); err != nil { return Info{}, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
internal/disk/stat_bsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "syscall" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java
*/ @SuppressWarnings("unchecked") public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); } return (T) getInfo(); } @Override protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java
*/ @SuppressWarnings("unchecked") public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); } return (T) getInfo(); } /** * {@inheritDoc} *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.8K bytes - Viewed (0) -
internal/disk/stat_openbsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "syscall" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
internal/disk/stat_freebsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "syscall" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.7K bytes - Viewed (0) -
internal/disk/stat_solaris.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "golang.org/x/sys/unix" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := unix.Statvfs_t{} if err = unix.Statvfs(path, &s); err != nil { return Info{}, err }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0)