File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ library Bytes {
71
71
/**
72
72
* @dev Count number of occurrences of `search` at the beginning of `buffer`.
73
73
*/
74
- function countLeading (bytes memory buffer , bytes1 search ) public pure returns (uint256 ) {
74
+ function countLeading (bytes memory buffer , bytes1 search ) internal pure returns (uint256 ) {
75
75
return countConsecutive (buffer, 0 , search);
76
76
}
77
77
78
78
/**
79
79
* @dev Count number of occurrences of `search` in `buffer`, starting from position `offset`.
80
80
*/
81
- function countConsecutive (bytes memory buffer , uint256 offset , bytes1 search ) public pure returns (uint256 i ) {
81
+ function countConsecutive (bytes memory buffer , uint256 offset , bytes1 search ) internal pure returns (uint256 i ) {
82
82
assembly ("memory-safe" ) {
83
83
let chunk
84
84
let length := sub (mload (buffer), offset)
You can’t perform that action at this time.
0 commit comments