-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add identifier handling to ResourceLocator
Introduces a new enum for identifier length and modifies the ResourceLocator class to include this identifier and its encoding/decoding logic. This enhances the resource locator functionality by supporting identifiers of varying lengths.
- Loading branch information
1 parent
536c528
commit d4b53d0
Showing
3 changed files
with
92 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
enum ProtocolEnum { | ||
Http, | ||
Https, | ||
Unreserverd, | ||
SharedResourceDirectory = 0xff, | ||
Http = 0, | ||
Https = 1, | ||
SharedResourceDirectory = 0xf, | ||
} | ||
|
||
export default ProtocolEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
enum ResourceLocatorIdentifierEnum { | ||
None = 0, | ||
TwoBytes = 2, | ||
EightBytes = 8, | ||
ThirtyTwoBytes = 32, | ||
} | ||
|
||
export default ResourceLocatorIdentifierEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters