nse. 15
+ */
16
+package com.remoteyourcam.usb.ptp.model;
17
+
18
+import java.nio.ByteBuffer;
19
+
20
+import com.remoteyourcam.usb.ptp.PacketUtil;
21
+
22
+public class StorageInfo {
23
+
24
+    public int storageType;
25
+    public int filesystemType;
26
+    public int accessCapability;
27
+    public long maxCapacity;
28
+    public long freeSpaceInBytes;
29
+    public int freeSpaceInImages;
30
+    public String storageDescription;
31
+    public String volumeLabel;
32
+
33
+    public StorageInfo(ByteBuffer b, int length) {
34
+        decode(b, length);
35
+    }
36
+
37
+    private void decode(ByteBuffer b, int length) {
38
+        storageType = b.getShort() & 0xffff;
39
+        filesystemType = b.getShort() & 0xffff;
40
+        accessCapability = b.getShort() & 0xff;
41
+        maxCapacity = b.getLong();
42
+        freeSpaceInBytes = b.getLong();
43
+        freeSpaceInImages = b.getInt();
44
+        storageDescription = PacketUtil.readString(b);
45
+        volumeLabel = PacketUtil.readString(b);
46
+    }
47
+}

kodo - Gogs: Go Git Service

Keine Beschreibung

Brightcells: 597ee33ba6 Pai2 => Kodo vor 8 Jahren
..
migrations 917f2df489 Add api api/upgrade vor 8 Jahren
__init__.py df1df69fe3 add api upgrade/splash vor 10 Jahren
admin.py 018d52f61d Update package django_xxx vor 8 Jahren
models.py 597ee33ba6 Pai2 => Kodo vor 8 Jahren
tests.py fabef63211 set line_length=200 for isort vor 10 Jahren
views.py 018d52f61d Update package django_xxx vor 8 Jahren