/* * Copyright (c) 2018-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. * */ #include namespace facebook { namespace jni { int JReadableByteChannel::read(alias_ref dest) const { if (!self()) { throwNewJavaException("java/lang/NullPointerException", "java.lang.NullPointerException"); } static auto method = javaClassStatic()->getMethod)>("read"); return method(self(), dest); } }}