|
@ -16,7 +16,7 @@ const ( |
|
|
FlagHasMime = 0x04 |
|
|
FlagHasMime = 0x04 |
|
|
FlagHasLastModifiedDate = 0x08 |
|
|
FlagHasLastModifiedDate = 0x08 |
|
|
FlagHasTtl = 0x10 |
|
|
FlagHasTtl = 0x10 |
|
|
FlagChunkedFile = 0x80 |
|
|
|
|
|
|
|
|
FlagChunkManifest = 0x80 |
|
|
LastModifiedBytesLength = 5 |
|
|
LastModifiedBytesLength = 5 |
|
|
TtlBytesLength = 2 |
|
|
TtlBytesLength = 2 |
|
|
) |
|
|
) |
|
@ -282,10 +282,10 @@ func (n *Needle) SetHasTtl() { |
|
|
n.Flags = n.Flags | FlagHasTtl |
|
|
n.Flags = n.Flags | FlagHasTtl |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (n *Needle) IsChunkedFile() bool { |
|
|
|
|
|
return n.Flags&FlagChunkedFile > 0 |
|
|
|
|
|
|
|
|
func (n *Needle) IsChunkedManifest() bool { |
|
|
|
|
|
return n.Flags&FlagChunkManifest > 0 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (n *Needle) SetChunkedFile() { |
|
|
|
|
|
n.Flags = n.Flags | FlagChunkedFile |
|
|
|
|
|
|
|
|
func (n *Needle) SetChunkManifest() { |
|
|
|
|
|
n.Flags = n.Flags | FlagChunkManifest |
|
|
} |
|
|
} |