summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_freespacebitmap.go
blob: 6158eb02ba81e68ee12ba1bd2d2b30656c24db2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package btrfsitem

type FreeSpaceBitmap []byte // FREE_SPACE_BITMAP=200

func (o *FreeSpaceBitmap) UnmarshalBinary(dat []byte) (int, error) {
	*o = dat
	return len(dat), nil
}

func (o FreeSpaceBitmap) MarshalBinary() ([]byte, error) {
	return []byte(o), nil
}