Package com.io7m.calino.api
Class CLNChannelsLayoutDescriptions
java.lang.Object
com.io7m.calino.api.CLNChannelsLayoutDescriptions
Functions over layout descriptions.
-
Method Summary
Modifier and TypeMethodDescriptionparseLayoutDescriptor(String text) Parse a layout descriptor.static inttotalBits(List<CLNChannelDescription> channels) Determine the total required bits of the list of channels.
-
Method Details
-
totalBits
Determine the total required bits of the list of channels.- Parameters:
channels- The channels- Returns:
- The total bits
-
parseLayoutDescriptor
public static CLNChannelsLayoutDescriptionType parseLayoutDescriptor(String text) throws ParseException Parse a layout descriptor.- Parameters:
text- The descriptor- Returns:
- A parsed layout
- Throws:
ParseException- On errors
-