📓 Archive

  • Pricing
  • Chess
  • Syntax
  • NIO

    FGJ: Create:2024/04/18 Update: (2024-10-24)

    • Buffer #

      public final Buffer clear() {
          position = 0;
          limit = capacity;
          mark = -1;
          return this;
      }
      
      public final Buffer mark() {
      
          mark = position;
          return this;
      
      }
      
      public final Buffer reset() {
          int m = mark;
          if (m < 0) throw new InvalidMarkException();
          position = m;
          return this;
      }
      
      public final Buffer flip() {
          limit = position;
          position = 0;
          mark = -1;
          return this;
      }
      
      public final Buffer rewind() {
      
          position = 0;
          mark = -1;
          return this;
      }
      

    Reference #


    comments powered by Disqus