예제 #1
0
 public static object Each(RubyContext/*!*/ context, BlockParam block, RubyIO/*!*/ self, DynamicNull separator) {
     return Each(context, block, self, null, -1);
 }
예제 #2
0
 public static MutableString/*!*/ Read(RubyIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer) {
     buffer = PrepareReadBuffer(self, buffer);
     self.AppendBytes(buffer, Int32.MaxValue);
     return buffer;
 }
예제 #3
0
 public static object Cycle(CallSiteStorage<EachSite>/*!*/ each, BlockParam block, object self, DynamicNull iterations) {
     return (block != null) ? Cycle(each, block, self, Int32.MaxValue) : GetCycleEnumerator(each, block, self, Int32.MaxValue);
 }
예제 #4
0
 public static MutableString Gets(RubyScope/*!*/ scope, RubyIO/*!*/ self, DynamicNull separator) {
     return Gets(scope, self, null, -1);
 }
예제 #5
0
 public static object Each(RubyContext/*!*/ context, BlockParam block, object self, DynamicNull separator)
 {
     RubyIOOps.Each(context, block, context.InputProvider.GetOrResetCurrentStream(), separator);
     return self;
 }
예제 #6
0
 public static MutableString/*!*/ Read(RubyIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer) {
     if (buffer == null) {
         buffer = MutableString.CreateBinary();
     } else {
         buffer.Clear();
     } 
     
     self.AppendBytes(buffer, Int32.MaxValue);
     return buffer;
 }
예제 #7
0
 public static MutableString ReadLine(RubyScope/*!*/ scope, object self, DynamicNull separator)
 {
     return RubyIOOps.ReadLine(scope, scope.RubyContext.InputProvider.GetOrResetCurrentStream(), separator);
 }
예제 #8
0
 public static MutableString ToJson(DynamicNull self)
 {
     return JSON_NULL;
 }
예제 #9
0
 public static bool op_Implicit(DynamicNull self)
 {
     Debug.Assert(self == null);
     return false;
 }
예제 #10
0
 public static MutableString Read(RubyContext/*!*/ context, DynamicNull bytes, [DefaultProtocol, Optional]MutableString buffer)
 {
     return RubyIOOps.Read(context.InputProvider.GetOrResetCurrentStream(), bytes, buffer);
 }
예제 #11
0
 public static MutableString/*!*/ SystemRead(StringIO/*!*/ self, DynamicNull bytes, [DefaultProtocol, NotNull]MutableString buffer) {
     return Read(self, buffer, true);
 }
예제 #12
0
파일: StringIO.cs 프로젝트: TerabyteX/main
 public static RubyArray ReadLines(RubyContext/*!*/ context, StringIO/*!*/ self, DynamicNull separator)
 {
     return ReadLines(self, null, -1);
 }
예제 #13
0
파일: StringIO.cs 프로젝트: TerabyteX/main
 public static object EachLine(RubyContext/*!*/ context, BlockParam block, StringIO/*!*/ self, DynamicNull separator)
 {
     return EachLine(block, self, null, -1);
 }
예제 #14
0
 public static MutableString/*!*/ ReadLine(RubyScope/*!*/ scope, RubyIO/*!*/ self, DynamicNull separator) {
     return ReadLine(scope, self, null, -1);
 }
예제 #15
0
 public static RubyArray ReadLines(RubyContext/*!*/ context, object self, DynamicNull separator)
 {
     return RubyIOOps.ReadLines(context, context.InputProvider.GetOrResetCurrentStream(), separator);
 }
예제 #16
0
 public static RubyArray/*!*/ ReadLines(RubyContext/*!*/ context, RubyIO/*!*/ self, DynamicNull separator) {
     return ReadLines(context, self, null, -1);
 }
예제 #17
0
 public static MutableString ToJson(DynamicNull self, [Optional]GeneratorState state, [Optional]Int32 depth)
 {
     return Generator.ToJson(self);
 }